private void ToggleDisplay(object sender, EventArgs e) { settings.EnableDisplay = displayToggle.Checked; settings.Save(); if (displayToggle.Checked) { displayWindow.Show(); } else { displayWindow.Hide(); } }
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(); } }