Example #1
0
        public DiagramViewModel()
        {
            AddItemCommand = new SimpleCommand(ExecuteAddItemCommand);
            RemoveItemCommand = new SimpleCommand(ExecuteRemoveItemCommand);
            ClearSelectedItemsCommand = new SimpleCommand(ExecuteClearSelectedItemsCommand);
            CreateNewDiagramCommand = new SimpleCommand(ExecuteCreateNewDiagramCommand);

            DeleteSelectedItemsCommand = new SimpleCommand(CanExecuteDeleteSelectedItemsCommand, ExecuteDeleteSelectedItemsCommand);
        }
Example #2
0
 private void InitCommands()
 {
     ExitApplicationCommand = new SimpleCommand(ExitApplication);
 }
 private void Init()
 {
     SelectItemCommand = new SimpleCommand(ExecuteSelectItemCommand);
 }