public bool CanExecute() { if (SelectedNode == null) { return(false); } return(ChangedNodes.ContainsKey(SelectedNode)); }
public void Execute() { if (!Properties.Settings.Default.ReadOnly) { if (SelectedNode == null) { return; } //this.toolStripStatusLabel.Text = SPMLocalization.GetString("Saving_Changes"); if (ChangedNodes.ContainsKey(SelectedNode)) { SelectedNode.Update(); SelectedNode.Setup(); ChangedNodes.Remove(SelectedNode); } //this.toolStripStatusLabel.Text = SPMLocalization.GetString("Changes_Saved"); } }