public HarForm() { //建立扫描对象 SweepObj = new Har_Sweep(); //构造二次谐波模块配置对象 this.settings = new Settings_Har(""); //从默认二次谐波模块配置对象复制设置项的值 App_Settings.har.Clone(this.settings); if (this.settings.Min_Har > this.settings.Max_Har) { this.settings.Min_Har = this.settings.Max_Har - 1; } InitializeComponent(); pltHar.Resume(); pltHar.SetSampling(false); this.TopLevel = false; this.ShowInTaskbar = false; this.Dock = DockStyle.Fill; }
internal HarSettingForm(Har_Sweep SweepObj, Settings_Har settings) { this.SweepObj = SweepObj; this.settings = settings; InitializeComponent(); }