Пример #1
0
        /// Masque la ToolBar.

        private void HideToolBar()
        {
            if (toolBar != null)
            {
                toolBar.FormClosed -= formClosedEventHandler;
                SaveConfiguration();
                toolBar.Close();
                toolBar = null;
            }
        }
Пример #2
0
        /// Affiche la ToolBar.

        private void ShowToolBar()
        {
            if (toolBar == null)
            {
                Settings.Settings settings = SettingManager.Instance.Settings;
                toolBar = new BrainStormToolBar();
                toolBar.BrainStormApplication = brainStormApplication;
                toolBar.Location    = settings.ToolBarLocation;
                toolBar.Size        = settings.ToolBarSize;
                toolBar.FormClosed += formClosedEventHandler;
                toolBar.Show();
            }
            else
            {
                if (toolBar.TopMost == false)
                {
                    toolBar.TopMost = true;
                    toolBar.TopMost = false;
                }
            }
        }