private void button1_Click(object sender, EventArgs e) { Form form = new frmWatershedCharacteristics(currentCatchmentID); form.ShowDialog(); SetButtonColors(); }
private void btnAddCatchment_Click(object sender, EventArgs e) { //DialogResult dialogResult = MessageBox.Show("Adding a New Catchment cannot be deleted (they can be disabled), Continue to add new catchment to the routing?", // "Add New Catchment?", MessageBoxButtons.YesNo); //if (dialogResult == DialogResult.No) return; //Globals.Project.getNewCatchment(); //DisplayCurrentRouting(); Form form = new frmWatershedCharacteristics(1); form.ShowDialog(); DisplayCurrentRouting(); }
private void frmTreatmentOptions_Load(object sender, EventArgs e) { pbOptions.Image = Globals.Project.getConfigurationImage(); pbOptions.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; InterfaceCommon.BuildCatchmentMenu(menuStrip1, MenuItemClickHandler); menuStrip1.Items[currentCatchmentID - 1].BackColor = System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor.MenuHighlight); if (!Globals.Project.CatchmentExists(1)) { DialogResult d = MessageBox.Show("You need a defined Catchment to do Analysis - would you like to create one and data for one now?", "Create Catchment", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (d == DialogResult.Yes) { Form form = new frmWatershedCharacteristics(1); form.ShowDialog(); } } SetButtonColors(); this.Text += currentCatchment().TitleHeader(); }
private void btnEdit_Click(object sender, EventArgs e) { Form form = new frmWatershedCharacteristics(routingID); form.ShowDialog(); }