Example #1
0
        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;
            }
        }
Example #2
0
 private void rdManualBtn_CheckedChanged(object sender, EventArgs e)
 {
     _type = RatioTypeEnum.Manual;
     enableTextBox(true);
 }
Example #3
0
 private void autoRdBtn_CheckedChanged(object sender, EventArgs e)
 {
     _type = RatioTypeEnum.Automatic;
     enableTextBox(false);
 }