Example #1
0
        public bool CanExecute()
        {
            if (SelectedNode == null)
            {
                return(false);
            }

            return(ChangedNodes.ContainsKey(SelectedNode));
        }
Example #2
0
        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");
            }
        }