/// <summary> /// 測定パターン書き込みボタンイベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnWritePattern_Click(object sender, EventArgs e) { try { if (cmbColor.Visible) { cmbColor.Visible = false; } using (var f = new frmMeasurePattern(this.log)) { f.Pattern = new MeasurePattern(); f.Pattern.MeasureSetting = this.measSetting; f.Pattern.RelationSetting = SystemSetting.RelationSetting; f.IsReadMode = false; f.ShowDialog(this); } } catch (Exception ex) { ShowErrorMessage(ex); } finally { } }
/// <summary> /// 測定パターン読み込みボタンイベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnReadPattern_Click(object sender, EventArgs e) { try { if (cmbColor.Visible) { cmbColor.Visible = false; } using (var f = new frmMeasurePattern(this.log) { IsReadMode = true }) { if (f.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { // Update Measure setting. this.measSetting.GraphSettingList = f.Pattern.MeasureSetting.GraphSettingList; this.measSetting.MeasTagList = f.Pattern.MeasureSetting.MeasTagList; this.measSetting.MeasureTime_Mode2 = f.Pattern.MeasureSetting.MeasureTime_Mode2; this.measSetting.MeasureTime_Mode3 = f.Pattern.MeasureSetting.MeasureTime_Mode3; this.measSetting.Mode = f.Pattern.MeasureSetting.Mode; this.measSetting.SamplingCountLimit = f.Pattern.MeasureSetting.SamplingCountLimit; this.measSetting.SamplingTiming_Mode2 = f.Pattern.MeasureSetting.SamplingTiming_Mode2; this.measSetting.SamplingTiming_Mode3 = f.Pattern.MeasureSetting.SamplingTiming_Mode3; this.lblPatternFile.Text = f.CurrentFileName; // 測定設定を表示 ShowMeasSetting(); } } } catch (Exception ex) { ShowErrorMessage(ex); } finally { } }