Ejemplo n.º 1
0
 /// <summary>
 /// Masque la ToolBar.
 /// </summary>
 private void HideToolBar()
 {
     if (toolBar != null)
     {
         toolBar.FormClosed -= formClosedEventHandler;
         SaveConfiguration();
         toolBar.Close();
         toolBar = null;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Affiche la ToolBar.
 /// </summary>
 private void ShowToolBar()
 {
     if (toolBar == null)
     {
         Settings.Settings settings = SettingManager.Instance.Settings;
         toolBar = new NotItToolBar();
         toolBar.NotItApplication = notItApplication;
         toolBar.Location         = settings.ToolBarLocation;
         toolBar.Size             = settings.ToolBarSize;
         toolBar.FormClosed      += formClosedEventHandler;
         toolBar.Show();
     }
     else
     {
         if (toolBar.TopMost == false)
         {
             toolBar.TopMost = true;
             toolBar.TopMost = false;
         }
     }
 }