示例#1
0
 /// <summary>
 /// Masque la ListBar.
 /// </summary>
 private void HideListBar()
 {
     if (listBar != null)
     {
         listBar.FormClosed -= formClosedEventHandler;
         SaveConfiguration();
         listBar.Close();
         listBar = null;
     }
 }
示例#2
0
 /// <summary>
 /// Affiche la ListBar.
 /// </summary>
 private void ShowListBar()
 {
     if (listBar == null)
     {
         Settings.Settings settings = SettingManager.Instance.Settings;
         listBar = new NotItListBar();
         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;
         }
     }
 }