Example #1
0
 private void ToggleDisplay(object sender, EventArgs e)
 {
     settings.EnableDisplay = displayToggle.Checked;
     settings.Save();
     if (displayToggle.Checked)
     {
         displayWindow.Show();
     }
     else
     {
         displayWindow.Hide();
     }
 }
Example #2
0
 public void InitializeDisplayWindow()
 {
     displayWindow = new DisplayWindow();
     displayWindow.SetMonitor(settings.Monitor);
     if (settings.DefaultImage != null)
     {
         defaultImage.Image = new Bitmap(settings.DefaultImage);
         displayWindow.DisplayImage(settings.DefaultImage);
     }
     RefreshMaps();
     if (settings.EnableDisplay)
     {
         displayWindow.Show();
     }
 }