Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private void InitCommands()
 {
     ExitApplicationCommand = new SimpleCommand(ExitApplication);
 }
 private void Init()
 {
     SelectItemCommand = new SimpleCommand(ExecuteSelectItemCommand);
 }