private void btnRatio_Click(object sender, EventArgs e) { RatioForm form = new RatioForm(); form.RatioType = ratioType; if (ratioType == RatioTypeEnum.Manual) { form.ratios = autoDataElementsRatios; } if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { autoDataElementsRatios = form.ratios; ratioType = form.RatioType; } }
private void rdManualBtn_CheckedChanged(object sender, EventArgs e) { _type = RatioTypeEnum.Manual; enableTextBox(true); }
private void autoRdBtn_CheckedChanged(object sender, EventArgs e) { _type = RatioTypeEnum.Automatic; enableTextBox(false); }