public DiagramViewModel() { AddItemCommand = new SimpleCommand(ExecuteAddItemCommand); RemoveItemCommand = new SimpleCommand(ExecuteRemoveItemCommand); ClearSelectedItemsCommand = new SimpleCommand(ExecuteClearSelectedItemsCommand); CreateNewDiagramCommand = new SimpleCommand(ExecuteCreateNewDiagramCommand); DeleteSelectedItemsCommand = new SimpleCommand(CanExecuteDeleteSelectedItemsCommand, ExecuteDeleteSelectedItemsCommand); }
private void InitCommands() { ExitApplicationCommand = new SimpleCommand(ExitApplication); }
private void Init() { SelectItemCommand = new SimpleCommand(ExecuteSelectItemCommand); }