private void NewExecute(object obj) { SelectedGraphModel = new GraphModel(); SideBar.AddItem(SelectedGraphModel); SideBar.SelectedItem = SelectedGraphModel; SaveCommand.NotifyCanExecuteChanged(); }
private void NewExecute(object obj) { var temp = new SimpleModel(); SideBar.AddItem(temp); SideBar.SelectedItem = temp; SaveCommand.NotifyCanExecuteChanged(); }
private void NewExecute(object obj) { var temp = new SimpleModel(); SideBar.AddItem(temp); SideBar.SelectedItem = temp; SelectedNodeModel = new NodeModel(); SelectedGraph = GraphModels.FirstOrDefault(); SaveCommand.NotifyCanExecuteChanged(); }