Esempio n. 1
0
 /// <summary>
 /// Toggle live map
 /// </summary>
 public void ToggleLiveMap()
 {
     if (liveMapForm != null)
     {
         bool visible = liveMapForm.Visible;
         liveMapForm.Close();
         liveMapForm = null;
         if (!visible)
         {
             liveMapForm = new LiveMapForm();
             liveMapForm.Show();
         }
     }
     else
     {
         liveMapForm = new LiveMapForm();
         liveMapForm.Show();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Open live map
 /// </summary>
 private void OpenLiveMap()
 {
     CloseLiveMap();
     liveMapForm = new LiveMapForm();
     liveMapForm.Show();
 }