Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to build a GroupAttachCmd (Read 1546 times)
pcone
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Mar 9th, 2007
how to build a GroupAttachCmd
Jul 2nd, 2007 at 10:50am
Print Post  
Hi,
i have a problem when i try to build a CompositeCommand who contains a GroupAttachCommand because an error accours when i build the solution:

the code is :

CompositeCmd cmpcmd=new CompositeCmd(flow,"MyCompositeCommand",false);

Group g=new Group(flow);
g.AttachToArrowPoint(bImm,route.Central(arrow));
AddGroupCmd addgcmd=new AddGroupCmd(arrow,g);

GroupAttachCmd gAttCmd=new GroupAttachCmd(g,null);
cmpcmd.AddSubCmd(addgcmd);
cmpcmd.AddSubCmd(gAttCmd);


".....: 'MindFusion.Diagramming.WinForms.Commands.GroupAttachCmd.GroupAttachCmd(MindFusi
on.Diagramming.WinForms.Group, MindFusion.Diagramming.WinForms.Group.Attachment)' is inaccessible due to its protection level
"

Have Someone a solution?
Thanks!!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to build a GroupAttachCmd
Reply #1 - Jul 2nd, 2007 at 10:58am
Print Post  
Hi,

Use the UndoManager.StartComposite method to create the composite command. The group-related commands will be added automatically to the composite one when you call CreateGroup and AttachTo methods.

Stoyan
  
Back to top
 
IP Logged
 
pcone
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Mar 9th, 2007
Re: how to build a GroupAttachCmd
Reply #2 - Jul 2nd, 2007 at 11:33am
Print Post  
Thanks!!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint