private void checkBoxUseRadius_CheckedChanged(object sender, EventArgs e) { textBoxRadius.Enabled = checkBoxUseRadius.Checked; checkBoxCustomCoeffM.Enabled = !checkBoxUseRadius.Checked; hellmanCoeffSource = checkBoxUseRadius.Checked ? HellmanCoefficientSource.AMSAnalog : (checkBoxCustomCoeffM.Checked ? HellmanCoefficientSource.CustomOne : HellmanCoefficientSource.AMSAnalog); refreshOptionsText(); }
private void buttonMonths_Click(object sender, EventArgs e) { FormMonthsValuesDialogs fmv = new FormMonthsValuesDialogs(MonthsHellmanValues, "Среднемноголетние показатели степени по месяцам"); if (fmv.ShowDialog() == DialogResult.OK) { MonthsHellmanValues = fmv.Result; textBoxCoeffM.Enabled = false; hellmanCoeffSource = HellmanCoefficientSource.CustomMonths; } else { hellmanCoeffSource = HellmanCoefficientSource.CustomOne; } refreshOptionsText(); }