Ejemplo n.º 1
0
        private static void MenuOpening(object sender, CancelEventArgs e)
        {
            MRGWrapper w = GetInstance <MRGWrapper>();

            _menu.Items[7].Enabled  = _menu.Items[14].Enabled = w.Parent != null;
            _menu.Items[8].Enabled  = w._resource.IsDirty || w._resource.IsBranch;
            _menu.Items[10].Enabled = w.PrevNode != null;
            _menu.Items[11].Enabled = w.NextNode != null;
        }
Ejemplo n.º 2
0
        private static void MenuOpening(object sender, CancelEventArgs e)
        {
            MRGWrapper w = GetInstance <MRGWrapper>();

            ReplaceToolStripMenuItem.Enabled  = w.Parent != null;
            RestoreToolStripMenuItem.Enabled  = w._resource.IsDirty || w._resource.IsBranch;
            MoveUpToolStripMenuItem.Enabled   = w.PrevNode != null;
            MoveDownToolStripMenuItem.Enabled = w.NextNode != null;
            DeleteToolStripMenuItem.Enabled   = w.Parent != null;
        }