示例#1
0
        private void separateProportionBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertVerticalLevelNumber())
            {
                return;
            }

            TableInputForm form = new TableInputForm();

            form.SetFormMode(levelProportionBtn.Text, 1, p.verticalLevelNumber, levelProportionBtn.Text, "分層比例", "格網分層",
                             TableInputForm.InputFormType.SeparateForm, 90, 120, true, true, false, p.levelProportion);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.levelProportion = (double[])form.SeparateData().Clone();
                SwitchPreivewCombo(PreviewType.Sprate);
                DrawPreview();
            }
        }
示例#2
0
        private void separateProportionBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertVerticalLevelNumber())
            {
                return;
            }

            TableInputForm form = new TableInputForm();
            form.SetFormMode(levelProportionBtn.Text, 1, p.verticalLevelNumber, levelProportionBtn.Text, "分層比例", "格網分層",
                TableInputForm.InputFormType.SeparateForm, 90, 120, true, true, false, p.levelProportion);
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.levelProportion = (double[])form.SeparateData().Clone();
                SwitchPreivewCombo(PreviewType.Sprate);
                DrawPreview();
            }
        }