Beispiel #1
0
        private void DataGridView3_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (p1 == 0)
            {
                FIRregister r = null;

                foreach (Form f in Application.OpenForms)
                {
                    if (f is FIRregister)
                    {
                        r = (FIRregister)f;
                        break;
                    }
                }

                if (r == null)
                {
                    return;
                }

                DataGridViewRow row = DataGridView3.Rows[e.RowIndex];


                r.label7.Text    = row.Cells[0].Value.ToString();
                r.textBox1.Text  = row.Cells[1].Value.ToString();
                r.comboBox3.Text = row.Cells[2].Value.ToString();
                r.Load_Complaint();
                r.textBox12.Text = row.Cells[16].Value.ToString();

                r.groupBox1.Enabled = false;
                r.groupBox2.Enabled = false;
                r.groupBox3.Enabled = false;
                r.Button5.Enabled   = true;
                r.Button6.Enabled   = true;
                r.Button2.Enabled   = false;

                this.Dispose();
            }
        }