/// <summary> /// Executes the edit package command. /// </summary> private void ExecuteEditPackageCommand() { var viewModel = new PackageEditViewModel((Package)this.SelectedNode); var view = new PackageEditView { DataContext = viewModel }; view.ShowDialog(); }
/// <summary> /// Executes the add package command. /// </summary> private void ExecuteAddPackageCommand() { var newObject = new Package(); var viewModel = new PackageEditViewModel(newObject, (Project)this.SelectedNode); var view = new PackageEditView { DataContext = viewModel }; view.ShowDialog(); }