Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            try
            {

                if (form == null || form.closed == true)
                {
                    form = new adminTab();
                    form.MdiParent = this.MdiParent;
                    form.searchID = Convert.ToInt16(dataGridView1.CurrentRow.Cells["PersonelID"].Value);
                    form.Show();
                }
                else
                {
                    MessageBox.Show("You already opened one...");
                }
            }
            catch {
                MessageBox.Show("Do search !");
                form = null;
            }
        }
Exemple #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     adminTab form = new adminTab();
     form.searchID =Convert.ToInt16(dataGridView1.CurrentRow.Cells["PersonelID"].Value);
     form.Show();
 }