Ejemplo n.º 1
0
 private void chezyBtn_Click(object sender, EventArgs e)
 {
     TableInputForm form = new TableInputForm();
     form.SetFormMode(chezyBtn.Text, p.inputGrid.GetJ, p.inputGrid.GetI, chezyBtn.Text, "", "",
         TableInputForm.InputFormType.TwoInOneDouble, 90, 120, false, false, false, p.chezy);
     DialogResult r = form.ShowDialog();
     if (DialogResult.OK == r)
     {
         p.chezy = new RiverSimulationProfile.TwoInOne(form.GenericTwoInOneData());
     }
 }
Ejemplo n.º 2
0
        private void chezyBtn_Click(object sender, EventArgs e)
        {
            TableInputForm form = new TableInputForm();

            form.SetFormMode(chezyBtn.Text, p.inputGrid.GetJ, p.inputGrid.GetI, chezyBtn.Text, "", "",
                             TableInputForm.InputFormType.TwoInOneDouble, 90, 120, false, false, false, p.chezy);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.chezy = new RiverSimulationProfile.TwoInOne(form.GenericTwoInOneData());
            }
        }
Ejemplo n.º 3
0
        private void roughnessHeightKsBtn_Click(object sender, EventArgs e)
        {
            TableInputForm form = new TableInputForm();

            form.SetFormMode("粗糙高度Ks(mm)", p.inputGrid.GetJ, p.inputGrid.GetI, "粗糙高度Ks(mm)", "", "",
                             TableInputForm.InputFormType.TwoInOneDouble, 90, 120, false, false, false, p.roughnessHeightKs);
            form.unitLbl.Text = "mm";       //20150325新增規格
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.roughnessHeightKs = new RiverSimulationProfile.TwoInOne(form.GenericTwoInOneData());
            }
        }
Ejemplo n.º 4
0
        private void nearBedBoundaryInputBtn_Click(object sender, EventArgs e)
        {
            //p.inputConcentration
            TableInputForm form = new TableInputForm();

            form.SetFormMode(nearBedBoundaryInputBtn.Text, p.sedimentParticlesNumber, 1, nearBedBoundaryInputBtn.Text, "粒徑 ", "底床濃度",
                             TableInputForm.InputFormType.TwoInOneDouble, 90, 120, false, false, true, p.inputConcentration);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.inputConcentration = new RiverSimulationProfile.TwoInOne(form.GenericTwoInOneData());
            }
        }
Ejemplo n.º 5
0
 private void roughnessHeightKsBtn_Click(object sender, EventArgs e)
 {
     TableInputForm form = new TableInputForm();
     form.SetFormMode("粗糙高度Ks(mm)", p.inputGrid.GetJ, p.inputGrid.GetI, "粗糙高度Ks(mm)", "", "",
         TableInputForm.InputFormType.TwoInOneDouble, 90, 120, false, false, false, p.roughnessHeightKs);
     form.unitLbl.Text = "mm";       //20150325新增規格
     DialogResult r = form.ShowDialog();
     if (DialogResult.OK == r)
     {
         p.roughnessHeightKs = new RiverSimulationProfile.TwoInOne(form.GenericTwoInOneData());
     }
 }
Ejemplo n.º 6
0
 private void nearBedBoundaryInputBtn_Click(object sender, EventArgs e)
 {
     //p.inputConcentration
     TableInputForm form = new TableInputForm();
     form.SetFormMode(nearBedBoundaryInputBtn.Text, p.sedimentParticlesNumber, 1, nearBedBoundaryInputBtn.Text, "粒徑 ", "底床濃度",
         TableInputForm.InputFormType.TwoInOneDouble, 90, 120, false, false, true, p.inputConcentration);
     DialogResult r = form.ShowDialog();
     if (DialogResult.OK == r)
     {
         p.inputConcentration = new RiverSimulationProfile.TwoInOne(form.GenericTwoInOneData());
     }
 }