コード例 #1
0
        private void btnCost_Click(object sender, EventArgs e)
        {
            getValues();
            Form form = new frmCostAnalysis(currentBMP());

            form.ShowDialog();
        }
コード例 #2
0
        private void btnHelp_Click(object sender, EventArgs e)
        {
            // Now used as Cost
            Form form = new frmCostAnalysis(currentBMP());

            form.ShowDialog();

            currentBMP().Calculate();
            setOutputText();
        }
コード例 #3
0
        void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            // If not Edit button - ignore click
            if (e.RowIndex < 0 || e.ColumnIndex != dataGridView1.Columns["btnEdit"].Index)
            {
                return;
            }

            try
            {
                int          i   = Convert.ToInt32(dataGridView1[0, e.RowIndex].Value); // Cost Scenario ID
                CostScenario cs  = Globals.Project.getCostScenario(i);                  // Cost Scenario
                BMP          bmp = Globals.Project.getBMP(cs.CatchmentID, cs.BMPType);

                Form form = new frmCostAnalysis(bmp);
                form.ShowDialog();
            }
            catch
            {
                return;
            }

            DisplayScenarios();
        }