private void btnSettings_Click(object sender, EventArgs e) { if (RecorderSetupForm == null || RecorderSetupForm.IsDisposed) { RecorderSetupForm = new RecorderSetup(this); } RecorderSetupForm.Show(); }
public Recorder(CWExpert form) { try { this.AutoScaleMode = AutoScaleMode.Inherit; InitializeComponent(); float dpi = this.CreateGraphics().DpiX; float ratio = dpi / 96.0f; string font_name = this.Font.Name; float size = 8.25f / ratio; System.Drawing.Font new_font = new System.Drawing.Font(font_name, size); this.Font = new_font; MainForm = form; GetOptions(); SetWindowPos(this.Handle.ToInt32(), -1, this.Left, this.Top, this.Width, this.Height, 0); // on top others RecorderSetupForm = new RecorderSetup(this); } catch (Exception ex) { Debug.Write(ex.ToString()); } }
private void btnSettings_Click(object sender, EventArgs e) { if (RecorderSetupForm == null || RecorderSetupForm.IsDisposed) RecorderSetupForm = new RecorderSetup(this); RecorderSetupForm.Show(); }