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