Ejemplo n.º 1
0
        private void curvatureRadiusBtn_Click(object sender, EventArgs e)
        {
            TableInputForm form = new TableInputForm();

            form.SetFormMode(curvatureRadiusBtn.Text, p.inputGrid.GetJ, p.inputGrid.GetI, "", "", "",
                             TableInputForm.InputFormType.GenericDouble, 90, 120, true, false, false, p.curvatureRadius);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.curvatureRadius = (double[, ])form.GenericDoubleData().Clone();
            }
        }
Ejemplo n.º 2
0
        private void upBoundaryElevationInputBtn_Click(object sender, EventArgs e)
        {
            TableInputForm form = new TableInputForm();

            form.SetFormMode("上游邊界底床底床高程", p.inputGrid.GetJ, p.boundaryTimeNumber, "邊界時間", "", "邊界時間 ",
                             TableInputForm.InputFormType.GenericDoubleGreaterThanOrEqualZero, 90, 120, true, false, false, p.upBoundaryElevationArray);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.upBoundaryElevationArray = (double[, ])form.GenericDoubleData().Clone();
            }
        }
Ejemplo n.º 3
0
        private void sedimentParticlesNumberBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertSedimentParticlesNumber())
            {
                return;
            }

            TableInputForm form = new TableInputForm();

            form.SetFormMode(sedimentParticlesNumberBtn.Text, 1, p.sedimentParticlesNumber, "", "泥砂粒徑", "",
                             TableInputForm.InputFormType.GenericDouble, 90, 120, true, true, false, p.sedimentParticleSize);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.sedimentParticleSize = (double[, ])form.GenericDoubleData().Clone();
            }
        }
Ejemplo n.º 4
0
        private void bottomBedParticleSizeRatioBtn_Click(object sender, EventArgs e)
        {
            TableInputForm form = new TableInputForm();

            if (p.bottomBedParticleSizeRatio != null && p.bottomBedParticleSizeRatio.GetLongLength(1) == 0)
            {
                p.bottomBedParticleSizeRatio = null;
            }
            form.p = p;
            form.SetFormMode("底床粒徑比例(百分比)", p.sedimentParticlesNumber, (p.IsConstantFlowType()) ? 1 : p.boundaryTimeNumber, "邊界時間", "粒徑 ", "邊界時間",
                             TableInputForm.InputFormType.BottomBedParticleSizeRatio, 90, 120, true, false, false, p.bottomBedParticleSizeRatio);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.bottomBedParticleSizeRatio = (double[, ])form.GenericDoubleData().Clone();
            }
        }
Ejemplo n.º 5
0
 private void curvatureRadiusBtn_Click(object sender, EventArgs e)
 {
     TableInputForm form = new TableInputForm();
     form.SetFormMode(curvatureRadiusBtn.Text, p.inputGrid.GetJ, p.inputGrid.GetI, "", "", "",
         TableInputForm.InputFormType.GenericDouble, 90, 120, true, false, false, p.curvatureRadius);
     DialogResult r = form.ShowDialog();
     if (DialogResult.OK == r)
     {
         p.curvatureRadius = (double[,])form.GenericDoubleData().Clone();
     }
 }
Ejemplo n.º 6
0
 private void bottomBedParticleSizeRatioBtn_Click(object sender, EventArgs e)
 {
     TableInputForm form = new TableInputForm();
     if (p.bottomBedParticleSizeRatio != null && p.bottomBedParticleSizeRatio.GetLongLength(1) == 0)
     {
         p.bottomBedParticleSizeRatio = null;
     }
     form.p = p;
     form.SetFormMode("底床粒徑比例(百分比)", p.sedimentParticlesNumber, (p.IsConstantFlowType()) ? 1 : p.boundaryTimeNumber, "邊界時間", "粒徑 ", "邊界時間",
         TableInputForm.InputFormType.BottomBedParticleSizeRatio, 90, 120, true, false, false, p.bottomBedParticleSizeRatio);
     DialogResult r = form.ShowDialog();
     if (DialogResult.OK == r)
     {
         p.bottomBedParticleSizeRatio = (double[,])form.GenericDoubleData().Clone();
     }
 }
Ejemplo n.º 7
0
 private void upBoundaryElevationInputBtn_Click(object sender, EventArgs e)
 {
     TableInputForm form = new TableInputForm();
     form.SetFormMode("上游邊界底床底床高程", p.inputGrid.GetJ, p.boundaryTimeNumber, "邊界時間", "", "邊界時間 ",
         TableInputForm.InputFormType.GenericDoubleGreaterThanOrEqualZero, 90, 120, true, false, false, p.upBoundaryElevationArray);
     DialogResult r = form.ShowDialog();
     if (DialogResult.OK == r)
     {
         p.upBoundaryElevationArray = (double[,])form.GenericDoubleData().Clone();
     }
 }
Ejemplo n.º 8
0
        private void sedimentParticlesNumberBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertSedimentParticlesNumber())
            {
                return;
            }

            TableInputForm form = new TableInputForm();
            form.SetFormMode(sedimentParticlesNumberBtn.Text, 1, p.sedimentParticlesNumber, "", "泥砂粒徑", "",
                TableInputForm.InputFormType.GenericDouble, 90, 120, true, true, false, p.sedimentParticleSize);
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.sedimentParticleSize = (double[,])form.GenericDoubleData().Clone();
            }
        }