예제 #1
0
        private void downSuperWaterLevelBtn_Click_1(object sender, EventArgs e)
        {
            if (null == p.downSubWaterLevel)
            {
                p.downSubWaterLevel = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.TwoDim, RiverSimulationProfile.TwoInOne.ArrayType.TwoDim);
            }

            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }

            if (!AlertBoundaryTimeChange(ref p.downSubWaterLevel))
            {
                return;
            }

            ThreeWayTableForm form = new ThreeWayTableForm();

            form.SetFormMode(ThreeWayTableForm.FormType.WaterLevel, "下游亞臨界流水位", "水位", p.inputGrid.GetJ, p.boundaryTimeNumber, p, p.downSubWaterLevel);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.downSubWaterLevel = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
            }
        }
예제 #2
0
        private void subSideFlowQuantityBtn_Click(object sender, EventArgs e)
        {
            if (null == p.subSideFlowQuantity)
            {
                p.subSideFlowQuantity = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.TwoDim, RiverSimulationProfile.TwoInOne.ArrayType.TwoDim);
            }

            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }

            if (!AlertBoundaryTimeChange(ref p.subSideFlowQuantity))
            {
                return;
            }

            ThreeWayTableForm form = new ThreeWayTableForm();

            form.SetFormMode(ThreeWayTableForm.FormType.FlowQuantity, "上游亞臨界流側方向流量", "流量Q", p.inputGrid.GetJ, p.boundaryTimeNumber, p, p.subSideFlowQuantity);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.subSideFlowQuantity = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
            }
        }
예제 #3
0
 private void depthAverageConcentrationBtn_Click(object sender, EventArgs e)
 {
     ThreeWayTableForm form = new ThreeWayTableForm();
     //            p.depthAverageConcentration = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.ThreeDim, RiverSimulationProfile.TwoInOne.ArrayType.ThreeDim);
     form.SetFormMode(ThreeWayTableForm.FormType.DepthAverageConcentration, "水深平均濃度", "粒徑", p.inputGrid.GetJ, p.inputGrid.GetI, p, p.depthAverageConcentration);
     DialogResult r = form.ShowDialog();
     if (DialogResult.OK == r)
     {
         p.depthAverageConcentration = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
         p.depthAverageConcentration.type = RiverSimulationProfile.TwoInOne.Type.UseValue;
     }
     //TableInputForm form = new TableInputForm();
     //form.SetFormMode(depthAverageConcentrationBtn.Text, p.inputGrid.GetJ, p.inputGrid.GetI, depthAverageConcentrationBtn.Text, "", "",
     //    TableInputForm.InputFormType.TwoInOneDouble, 90, 120, false, false, false, p.waterLevel);
     //DialogResult r = form.ShowDialog();
     //if (DialogResult.OK == r)
     //{
     //    p.waterLevel = new RiverSimulationProfile.TwoInOne(form.GenericTwoInOneData());
     //}
 }
예제 #4
0
        private void depthAverageConcentrationBtn_Click(object sender, EventArgs e)
        {
            ThreeWayTableForm form = new ThreeWayTableForm();

//            p.depthAverageConcentration = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.ThreeDim, RiverSimulationProfile.TwoInOne.ArrayType.ThreeDim);
            form.SetFormMode(ThreeWayTableForm.FormType.DepthAverageConcentration, "水深平均濃度", "粒徑", p.inputGrid.GetJ, p.inputGrid.GetI, p, p.depthAverageConcentration);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.depthAverageConcentration      = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
                p.depthAverageConcentration.type = RiverSimulationProfile.TwoInOne.Type.UseValue;
            }
            //TableInputForm form = new TableInputForm();
            //form.SetFormMode(depthAverageConcentrationBtn.Text, p.inputGrid.GetJ, p.inputGrid.GetI, depthAverageConcentrationBtn.Text, "", "",
            //    TableInputForm.InputFormType.TwoInOneDouble, 90, 120, false, false, false, p.waterLevel);
            //DialogResult r = form.ShowDialog();
            //if (DialogResult.OK == r)
            //{
            //    p.waterLevel = new RiverSimulationProfile.TwoInOne(form.GenericTwoInOneData());
            //}
        }
예제 #5
0
        private void bottomBedLoadFluxInputBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }

            if (!AlertBoundaryTimeChange(ref p.superMainFlowQuantity))
            {
                return;
            }

            ThreeWayTableForm form = new ThreeWayTableForm();

            form.SetFormMode(ThreeWayTableForm.FormType.BottomBedLoadFlux, "底床載通量", "粒徑", p.sedimentParticlesNumber, p.boundaryTimeNumber, p, p.bottomBedLoadFluxArray);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.bottomBedLoadFluxArray = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
            }
        }
예제 #6
0
        private void suspendedLoadDepthAvgConcentrationBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }

            if (!AlertBoundaryTimeChange(ref p.superMainFlowQuantity))
            {
                return;
            }
            //p.suspendedLoadDepthAvgConcentration = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.ThreeDim, RiverSimulationProfile.TwoInOne.ArrayType.ThreeDim);
            //p.suspendedLoadDepthAvgConcentration.Clear();
            ThreeWayTableForm form = new ThreeWayTableForm();

            form.SetFormMode(ThreeWayTableForm.FormType.BottomBedLoadFlux, "懸浮載水深平均濃度", "粒徑", p.sedimentParticlesNumber, (p.IsConstantFlowType() ? 1 : p.boundaryTimeNumber), p, p.suspendedLoadDepthAvgConcentration);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.suspendedLoadDepthAvgConcentration = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
            }
        }
예제 #7
0
        private void suspendedLoadDepthAvgConcentrationBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }

            if (!AlertBoundaryTimeChange(ref p.superMainFlowQuantity))
            {
                return;
            }
            //p.suspendedLoadDepthAvgConcentration = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.ThreeDim, RiverSimulationProfile.TwoInOne.ArrayType.ThreeDim);
            //p.suspendedLoadDepthAvgConcentration.Clear();
            ThreeWayTableForm form = new ThreeWayTableForm();
            form.SetFormMode(ThreeWayTableForm.FormType.BottomBedLoadFlux, "懸浮載水深平均濃度", "粒徑", p.sedimentParticlesNumber, (p.IsConstantFlowType() ? 1 : p.boundaryTimeNumber), p, p.suspendedLoadDepthAvgConcentration);
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.suspendedLoadDepthAvgConcentration = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
            }
        }
예제 #8
0
        private void superWaterLevelBtn_Click(object sender, EventArgs e)
        {
            if (null == p.superWaterLevel)
            {
                p.superWaterLevel = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.TwoDim, RiverSimulationProfile.TwoInOne.ArrayType.TwoDim);
            }

            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }

            if (!AlertBoundaryTimeChange(ref p.superWaterLevel))
            {
                return;
            }

            ThreeWayTableForm form = new ThreeWayTableForm();
            form.SetFormMode(ThreeWayTableForm.FormType.WaterLevel, "上游超臨界流水位", "水位", p.inputGrid.GetJ, p.boundaryTimeNumber, p, p.superWaterLevel);
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.superWaterLevel = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
            }
        }
예제 #9
0
        private void bottomBedLoadFluxInputBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }

            if (!AlertBoundaryTimeChange(ref p.superMainFlowQuantity))
            {
                return;
            }

            ThreeWayTableForm form = new ThreeWayTableForm();
            form.SetFormMode(ThreeWayTableForm.FormType.BottomBedLoadFlux, "底床載通量", "粒徑", p.sedimentParticlesNumber, p.boundaryTimeNumber, p, p.bottomBedLoadFluxArray);
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.bottomBedLoadFluxArray = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
            }
        }
예제 #10
0
        private void subSideFlowQuantityBtn_Click(object sender, EventArgs e)
        {
            if (null == p.subSideFlowQuantity)
            {
                p.subSideFlowQuantity = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.TwoDim, RiverSimulationProfile.TwoInOne.ArrayType.TwoDim);
            }

            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }

            if (!AlertBoundaryTimeChange(ref p.subSideFlowQuantity))
            {
                return;
            }

            ThreeWayTableForm form = new ThreeWayTableForm();
            form.SetFormMode(ThreeWayTableForm.FormType.FlowQuantity, "上游亞臨界流側方向流量", "流量Q", p.inputGrid.GetJ, p.boundaryTimeNumber, p, p.subSideFlowQuantity);
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.subSideFlowQuantity = new RiverSimulationProfile.TwoInOne(form.GetData() as RiverSimulationProfile.TwoInOne);
            }
        }