/// <summary> /// Executes the edit project command. /// </summary> private void ExecuteEditProjectCommand() { var viewModel = new ProjectEditViewModel((Project)this.SelectedNode); var view = new ProjectEditView { DataContext = viewModel }; view.ShowDialog(); // recalculate node name based on new package name viewModel.Thing.RecalculateNodeName(); }