private void playBtnPan_Click(object sender, EventArgs e) { foreach (Form f in Application.OpenForms) { if (f.Name != this.Name) { f.Close(); break; } } this.Opacity = 0; this.ShowInTaskbar = false; this.WindowState = FormWindowState.Minimized; PlayBw.RunWorkerAsync(); }
private void playBtnPan_Click(object sender, EventArgs e) { Size size = Main.RenderSize; Main.SetConfigValue(Main.SettingsKey.magnifyEndPixelWidth, size.Width.ToString()); Main.SetConfigValue(Main.SettingsKey.magnifyEndPixelHeight, size.Height.ToString()); int start = Main.RenderPixelStart; Main.SetConfigValue(Main.SettingsKey.magnifyStartPixelWidth, start.ToString()); Main.WriteSettings(); foreach (Form f in Application.OpenForms) { if (f.Name != Name) { f.Close(); } } WindowState = FormWindowState.Minimized; PlayBw.RunWorkerAsync(); }