Пример #1
0
        private void boundaryUpVerticalDistributionBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertUpVerticalDistributionNumber())
            {
                return;
            }

            TableInputForm form = new TableInputForm();

            form.SetFormMode("上游垂直濃度分布", 2, p.boundaryUpVerticalDistributionNum, "", "", "分層",
                             TableInputForm.InputFormType.VerticalVelocityDistributionForm, 90, 80, true, true, false, p.boundaryUpVerticalDistribution.Array2D());
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.boundaryUpVerticalDistribution.SetArrayObject(form.VerticalVelocityDistributionData().Clone());
            }
        }
Пример #2
0
        //private void verticalVelocityDistributionChk_CheckedChanged(object sender, EventArgs e)
        //{
        //    bool chk = (sender as CheckBox).Checked;
        //    verticalVelocityDistributionTxt.Enabled = chk;
        //    verticalVelocityDistributionBtn.Enabled = chk;
        //    p.verticalVelocityDistribution = chk;
        //    //UpdateStatus();
        //}

        private void verticalVelocityDistributionBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertVerticalVelocityDistributionNumber())
            {
                return;
            }

            TableInputForm form = new TableInputForm();

            form.SetFormMode("垂直流速分布(3D)", 2, p.verticalVelocityDistributionNumber, "", "", "分層",
                             TableInputForm.InputFormType.VerticalVelocityDistributionForm, 90, 80, true, true, false, p.verticalVelocityDistributionArray);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.verticalVelocityDistributionArray = (double[, ])form.VerticalVelocityDistributionData().Clone();
            }
        }
Пример #3
0
        private void boundaryUpVerticalDistributionBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertUpVerticalDistributionNumber())
            {
                return;
            }

            TableInputForm form = new TableInputForm();
            form.SetFormMode("上游垂直濃度分布", 2, p.boundaryUpVerticalDistributionNum, "", "", "分層",
                 TableInputForm.InputFormType.VerticalVelocityDistributionForm, 90, 80, true, true, false, p.boundaryUpVerticalDistribution.Array2D());
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.boundaryUpVerticalDistribution.SetArrayObject(form.VerticalVelocityDistributionData().Clone());
            }
        }
Пример #4
0
        //private void verticalVelocityDistributionChk_CheckedChanged(object sender, EventArgs e)
        //{
        //    bool chk = (sender as CheckBox).Checked;
        //    verticalVelocityDistributionTxt.Enabled = chk;
        //    verticalVelocityDistributionBtn.Enabled = chk;
        //    p.verticalVelocityDistribution = chk;
        //    //UpdateStatus();
        //}
        private void verticalVelocityDistributionBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertVerticalVelocityDistributionNumber())
            {
                return;
            }

            TableInputForm form = new TableInputForm();
            form.SetFormMode("垂直流速分布(3D)", 2, p.verticalVelocityDistributionNumber, "", "", "分層",
                 TableInputForm.InputFormType.VerticalVelocityDistributionForm, 90, 80, true, true, false, p.verticalVelocityDistributionArray);
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.verticalVelocityDistributionArray = (double[,])form.VerticalVelocityDistributionData().Clone();
            }
        }