コード例 #1
0
 private void MenuStateSwitch(EasyMYPMenuActivationEvent e)
 {
     if (contextMenuStripFileSystemTreeView.InvokeRequired)
     {
         Invoke(OnMenuActivation, e);
     }
     else
     {
         _MenuActivation(e);
     }
 }
コード例 #2
0
        private void _MenuActivation(EasyMYPMenuActivationEvent e)
        {
            extractAllToolStripMenuItem.Enabled        = e.Enabled;
            extractFileListToolStripMenuItem.Enabled   = e.Enabled;
            extractSelectedToolStripMenuItem.Enabled   = e.Enabled;
            replaceSelectedToolStripMenuItem.Enabled   = e.Enabled;
            contextMenuStripFileSystemTreeView.Enabled = e.Enabled;

            if (e.Enabled)
            {
                ProgressBarVisibilityUpdate(new EasyMYPProgressBarVisibilityEvent(statusPB, false, 0, 0));
            }
        }
コード例 #3
0
        private void _MenuActivation(EasyMYPMenuActivationEvent e)
        {
            extractAllToolStripMenuItem.Enabled = e.Enabled;
            extractFileListToolStripMenuItem.Enabled = e.Enabled;
            extractSelectedToolStripMenuItem.Enabled = e.Enabled;
            replaceSelectedToolStripMenuItem.Enabled = e.Enabled;
            contextMenuStripFileSystemTreeView.Enabled = e.Enabled;

            if (e.Enabled)
            {
                ProgressBarVisibilityUpdate(new EasyMYPProgressBarVisibilityEvent(statusPB, false, 0, 0));
            }
        }
コード例 #4
0
 private void MenuStateSwitch(EasyMYPMenuActivationEvent e)
 {
     if (contextMenuStripFileSystemTreeView.InvokeRequired)
     {
         Invoke(OnMenuActivation, e);
     }
     else
     {
         _MenuActivation(e);
     }
 }