Ejemplo n.º 1
0
        /// Masque la ListBar.

        private void HideListBar()
        {
            if (listBar != null)
            {
                listBar.FormClosed -= formClosedEventHandler;
                SaveConfiguration();
                listBar.Close();
                listBar = null;
            }
        }
Ejemplo n.º 2
0
        /// Affiche la ListBar.

        private void ShowListBar()
        {
            if (listBar == null)
            {
                Settings.Settings settings = SettingManager.Instance.Settings;
                listBar = new BrainStormListBar();
                listBar.ShowInTaskbar = settings.ShowListBarInTaskBar;
                listBar.Location      = settings.ListBarLocation;
                listBar.Size          = settings.ListBarSize;
                listBar.FormClosed   += formClosedEventHandler;
                listBar.Show();
            }
            else
            {
                if (listBar.TopMost == false)
                {
                    listBar.TopMost = true;
                    listBar.TopMost = false;
                }
            }
        }