private static void MenuOpening(object sender, CancelEventArgs e)
        {
            STPMWrapper w = GetInstance <STPMWrapper>();

            _menu.Items[6].Enabled = w.PrevNode != null;
            _menu.Items[7].Enabled = w.NextNode != null;
        }
        private static void MenuOpening(object sender, CancelEventArgs e)
        {
            STPMWrapper w = GetInstance <STPMWrapper>();

            _menu.Items[3].Enabled = _menu.Items[5].Enabled = _menu.Items[11].Enabled = w.Parent != null;
            _menu.Items[4].Enabled = ((w._resource.IsDirty) || (w._resource.IsBranch));
            _menu.Items[7].Enabled = w.PrevNode != null;
            _menu.Items[8].Enabled = w.NextNode != null;
        }