public Diagram()
 {
     AddItemCommand            = new InnerCommand(ExecuteAddItemCommand);
     ClearSelectedItemsCommand = new InnerCommand(ExecuteClearSelectedItemsCommand);
     CreateNewDiagramCommand   = new InnerCommand(ExecuteCreateNewDiagramCommand);
     RemoveItemCommand         = new InnerCommand(ExecuteRemoveItemCommand);
     Mediator.Instance.Register(this);
 }
Esempio n. 2
0
 protected VisualElement()
 {
     SelectItemCommand  = new InnerCommand(x => SelectItem((bool)x, !IsSelected));
     DoubleClickCommand = new InnerCommand(x => OnDoubleClick());
 }