private void SettingButton_Click(object sender, EventArgs e) { Button orgBtn = sender as Button; if (orgBtn == valueParamBtn) { sp.SlidePanel(valueParamPanel, SliderPanel.Direction.ToRight, this.Size); } else if (orgBtn == physicalParamBtn) { sp.SlidePanel(physicalParamPanel, SliderPanel.Direction.ToRight, this.Size); } else if (orgBtn == transSandMethodBtn) { ControllerUtility.SetHtmlUrl(comment, "D2-4.html"); sp.SlidePanel(transSandMethodPanel, SliderPanel.Direction.ToRight, this.Size); } else if (orgBtn == seabedCompositionBtn) { sp.SlidePanel(seabedCompositionPanel, SliderPanel.Direction.ToRight, this.Size); } else if (orgBtn == rockbedBtn) { sp.SlidePanel(rockbedPanel, SliderPanel.Direction.ToRight, this.Size); } else if (orgBtn == rockStableBtn) { sp.SlidePanel(rockStablePanel, SliderPanel.Direction.ToRight, this.Size); } //else if (orgBtn == immersionBtn) //{ // sp.SlidePanel(immersionPanel, SliderPanel.Direction.ToRight); //} }
private void BoundaryConditionsForm_Load(object sender, EventArgs e) { waterModelingPanel.Visible = false; moveableBedPanel.Visible = false; //p.ClearBackgroundMapType(); ControllerUtility.SetHtmlUrl(comment, "Logo.html"); ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, p); //p.boundaryUpVerticalDistribution = null; //p.boundaryDownVerticalDistribution = null; if (p.boundaryUpVerticalDistribution == null) { p.boundaryUpVerticalDistribution = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.Double, RiverSimulationProfile.TwoInOne.ArrayType.TwoDim); } if (p.boundaryUpVerticalDistribution.ArrayNull() || p.boundaryUpVerticalDistribution.ValueNull()) { p.boundaryUpVerticalDistribution.CreateDouble2D(0, 0); } if (p.boundaryDownVerticalDistribution == null) { p.boundaryDownVerticalDistribution = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.Double, RiverSimulationProfile.TwoInOne.ArrayType.TwoDim); } if (p.boundaryDownVerticalDistribution.ArrayNull() || p.boundaryDownVerticalDistribution.ValueNull()) { p.boundaryDownVerticalDistribution.CreateDouble2D(0, 0); } LoadStatus(); UpdateStatus(); }
private void Back_Click(object sender, EventArgs e) { //if (DoConvert()) //{ sp.SlidePanel(null, SliderPanel.Direction.Back, this.Size); //} ControllerUtility.SetHtmlUrl(comment, "Logo.html"); }
private void InitialConditionsForm_Load(object sender, EventArgs e) { ControllerUtility.SetHtmlUrl(comment, "Logo.html"); ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, p); LoadStatus(); UpdateStatus(); }
private void WaterModelingForm_Load(object sender, EventArgs e) { valueParamPanel.Visible = false; //隱藏數值參數面板 physicalParamPanel.Visible = false; //隱藏物理參數面板 ControllerUtility.SetHtmlUrl(comment, "Logo.html"); ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, p); mapPicBox.Visible = true; LoadStatus(); UpdateStatus(); }
private void ImportForm_Load(object sender, EventArgs e) { ControllerUtility.SetHtmlUrl(comment, "Logo.html"); if (p.inputGrid != null) { mapPicBox.Grid = p.inputGrid; } mapPicBox.Visible = true; previewSpratePanel.Size = mapPicBox.Size; previewSpratePanel.Top = mapPicBox.Top; previewSpratePanel.Left = mapPicBox.Left; InitPreviewCombo(); previewCombo.SelectedIndex = (int)(PreviewType.GridMap) - 1; LoadStatus(); UpdateStatus(); }
private void roughnessType_CheckedChanged(object sender, EventArgs e) { bool chk = (sender as RadioButton).Checked; if (chk && sender as RadioButton == manningNRdo) { p.roughnessType = RiverSimulationProfile.RoughnessType.ManningN; ControllerUtility.SetHtmlUrl(comment, "D1-2-1-1.html"); } else if (chk && sender as RadioButton == chezyRdo) { p.roughnessType = RiverSimulationProfile.RoughnessType.Chezy; ControllerUtility.SetHtmlUrl(comment, "D1-2-1-2.html"); } else { //p.roughnessType = RiverSimulationProfile.RoughnessType.None; } UpdateStatus(); //操作此UI會有互動變化則需呼叫 }
private void MovableBedForm_Load(object sender, EventArgs e) { valueParamPanel.Visible = false; physicalParamPanel.Visible = false; seabedCompositionPanel.Visible = false; rockStablePanel.Visible = false; rockbedPanel.Visible = false; transSandMethodPanel.Visible = false; ControllerUtility.SetHtmlUrl(comment, "Logo.html"); ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, p); mapPicBox.Visible = true; previewSedimentCompositionPanel.Size = mapPicBox.Size; previewSedimentCompositionPanel.Top = mapPicBox.Top; previewSedimentCompositionPanel.Left = mapPicBox.Left; InitPreviewCombo(); previewCombo.SelectedIndex = (int)(PreviewType.GridMap) - 1; LoadStatus(); UpdateStatus(); }
private void timeTxt_Enter(object sender, EventArgs e) { ControllerUtility.SetHtmlUrl(comment, "D1-1.html"); }
private void valueTimePanel_MouseHover(object sender, EventArgs e) { ControllerUtility.SetHtmlUrl(comment, "D1-1.html"); }
private void Back_Click(object sender, EventArgs e) { sp.SlidePanel(null, SliderPanel.Direction.Back, this.ClientSize); ControllerUtility.SetHtmlUrl(comment, "Logo.html"); }
private void sedimentParticlesNumTxt_MouseHover(object sender, EventArgs e) { ControllerUtility.SetHtmlUrl(comment, "D1-2-1-3.html"); }