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

            _menu.Items[0].Enabled = w.PrevNode != null;
            _menu.Items[1].Enabled = w.NextNode != null;
        }
Exemplo n.º 2
0
        private static void MenuOpening(object sender, CancelEventArgs e)
        {
            TEVStageWrapper w = GetInstance <TEVStageWrapper>();

            MoveUpToolStripMenuItem.Enabled   = w.PrevNode != null;
            MoveDownToolStripMenuItem.Enabled = w.NextNode != null;
            DeleteToolStripMenuItem.Enabled   = w.Parent != null;
        }