private void MenuStateSwitch(EasyMYPMenuActivationEvent e)
 {
     if (contextMenuStripFileSystemTreeView.InvokeRequired)
     {
         Invoke(OnMenuActivation, e);
     }
     else
     {
         _MenuActivation(e);
     }
 }
        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));
            }
        }
        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));
            }
        }
 private void MenuStateSwitch(EasyMYPMenuActivationEvent e)
 {
     if (contextMenuStripFileSystemTreeView.InvokeRequired)
     {
         Invoke(OnMenuActivation, e);
     }
     else
     {
         _MenuActivation(e);
     }
 }