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