private static void MenuOpening(object sender, CancelEventArgs e) { MDL0GroupWrapper w = GetInstance <MDL0GroupWrapper>(); 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; }
private static void MenuOpening(object sender, CancelEventArgs e) { MDL0GroupWrapper w = GetInstance <MDL0GroupWrapper>(); }