Ejemplo n.º 1
0
 internal override object Execute(WorkspaceModel workspaceModel, bool events = true)
 {
     if (Model == null)
     {
         Model = workspaceModel.newConnectionModel(From, To, ConnectionType);
     }
     else
     {
         workspaceModel.addConnectionModel((ConnectionModel)Model);
     }
     if (events)
     {
         workspaceModel.OnNewChildElement(Model);
     }
     return(Model);
 }
Ejemplo n.º 2
0
 internal override void Undo(WorkspaceModel workspaceModel)
 {
     workspaceModel.addConnectionModel((ConnectionModel)Model);
     workspaceModel.OnNewChildElement(Model);
 }