Beispiel #1
0
        private void test_CaseDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (MessageBox.Show("Do you want to add a bug to the existing Test Case?", "Bug Hunter", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                Form3 formDig1 = new Form3(textBox2.Text);
               // Form3 formDig1 = new Form3();
                formDig1.Show();
            }
            else
            if (e.RowIndex >= 0)
            {
                DataGridViewRow row = this.test_CaseDataGridView.Rows[e.RowIndex];
                id = row.Cells["dataGridViewTextBoxColumn1"].Value.ToString();
               // MessageBox.Show("id is " + id);
                textBox1.Text = id;
                //    DataGridViewRow row = (DataGridViewRow)sender;
                this.test_CaseTableAdapter.FillBy(this._BugHunter1_1DataSet.Test_Case,15 );

                Form5 formDig1 = new Form5(textBox1.Text);

                //this.test_CaseTableAdapter.Fill(this._BugHunter1_1DataSet.Test_Case);
                formDig1.Show();
                Close();
            }
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Form5 formDig1 = new Form5(textBox1.Text);
     formDig1.Show();
     Close();
 }