示例#1
0
        /// <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();
        }
示例#2
0
        /// <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();
        }