public LOG(CWExpert c) { 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 = c; RestoreState(); this.Text = "LOG Book " + DB.LOGFilePath; }
public LOG_export(CWExpert form) { 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; comboLOGformat.SelectedIndex = 0; MainForm = form; GetOptions(); SetWindowPos(this.Handle.ToInt32(), -1, this.Left, this.Top, this.Width, this.Height, 0); // on top others SettingsForm = new LOGStnSettings(this); }
public IQBalancer(CWExpert form) { makewindow(2048, ref window); fft = new Fourier(); fftPtr = new ComplexF[4096]; spectrumPtr = new float[4096]; zero = new ComplexF[2048]; MainForm = form; iqfix.phase = 0.0f; iqfix.gain = 1.0f; iqfix.mu = 0.0f; iqfix.leakage = 0.000000f; iqfix.MASK = 2047; iqfix.index = 0; iqfix.w = new ComplexF[2048]; iqfix.b = new ComplexF[2048]; iqfix.y = new ComplexF[2048]; iqfix.del = new ComplexF[2048]; Reset(FFTBins); }
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()); } }