예제 #1
0
        private static void MenuOpening(object sender, CancelEventArgs e)
        {
            RSTCGroupWrapper w = GetInstance <RSTCGroupWrapper>();

            _menu.Items[0].Enabled = w._resource.Children.Count < 100;
            _menu.Items[2].Enabled = w._resource.HasChildren;
        }
예제 #2
0
        private static void MenuOpening(object sender, CancelEventArgs e)
        {
            RSTCGroupWrapper w = GetInstance <RSTCGroupWrapper>();

            _newEntryToolStripMenuItem.Enabled  = w._resource.Children.Count < 256;
            _clearListToolStripMenuItem.Enabled = w._resource.HasChildren;
        }