private static void MenuOpening(object sender, CancelEventArgs e) { MDL0MaterialWrapper w = GetInstance <MDL0MaterialWrapper>(); _menu.Items[4].Enabled = w.PrevNode != null; _menu.Items[5].Enabled = w.NextNode != null; _menu.Items[7].Enabled = w._resource.Children.Count < 8; //8 mat refs max! }
private static void MenuOpening(object sender, CancelEventArgs e) { MDL0MaterialWrapper w = GetInstance <MDL0MaterialWrapper>(); MoveUpToolStripMenuItem.Enabled = w.PrevNode != null; MoveDownToolStripMenuItem.Enabled = w.NextNode != null; _addNewRefToolStripMenuItem.Enabled = w._resource.Children.Count < 8; //8 mat refs max! }