/// Masque la ListBar. private void HideListBar() { if (listBar != null) { listBar.FormClosed -= formClosedEventHandler; SaveConfiguration(); listBar.Close(); listBar = null; } }
/// 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; } } }