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

            _menu.Items[1].Enabled = _menu.Items[6].Enabled = w.Parent != null;
            _menu.Items[2].Enabled = w._resource.IsDirty || w._resource.IsBranch;
        }
Ejemplo n.º 2
0
        private static void MenuOpening(object sender, CancelEventArgs e)
        {
            PAT0TextureEntryWrapper w = GetInstance <PAT0TextureEntryWrapper>();

            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;
        }