public void OkDialog() { var helper = new MessageBoxHelper(this); if (rbQValue01.Checked) { Settings.QValueCutoff = 0.01f; } if (rbQValueCustom.Checked) { var qValueCutoff = double.NaN; if (!string.IsNullOrEmpty(txtQValueCustom.Text) && !helper.ValidateDecimalTextBox(txtQValueCustom, 0, 1, out qValueCutoff)) { return; } else { Settings.QValueCutoff = (float)qValueCutoff; } } Settings.YScaleFactor = IntLabeledValue.GetValue(cmbCountMultiple, Settings.YScaleFactor); Settings.TargetType = IntLabeledValue.GetValue(cmbTargetType, Settings.TargetType); Settings.ShowAtLeastN = cbShowAtLeastN.Checked; Settings.ShowSelection = cbShowSelection.Checked; Settings.ShowMean = cbShowMeanStd.Checked; Settings.ShowLegend = cbShowLegend.Checked; Settings.RepCount = tbAtLeastN.Value; Settings.FontSize = GraphFontSize.GetFontSize(cmbFontSize).PointSize; DialogResult = DialogResult.OK; }
public void cbLevel_SelectedIndexChanged(object sender, EventArgs e) { if (cbLevel.Items.Count == 2) { Settings.TargetType = IntLabeledValue.GetValue(cbLevel, Settings.TargetType); _timer.Stop(); _timer.Start(); } }
private void cmbTargetType_SelectedIndexChanged(object sender, EventArgs e) { Settings.TargetType = IntLabeledValue.GetValue(cmbTargetType, Settings.TargetType); IntLabeledValue.PopulateCombo(cmbCountMultiple, Settings.YScaleFactor); }