Пример #1
0
 private void Get_Emp_By_BT_Click(object sender, EventArgs e)
 {
     Dt = cobj.Get_Employee_by_ID(Convert.ToInt32(id));
     if (Dt != null)
     {
         Getempinfo_empmode f = new Getempinfo_empmode(null, null, this, Dt);
         f.Show();
     }
     this.Hide();
 }
Пример #2
0
 private void button7_Click(object sender, EventArgs e)
 {
     Dt = cobj.Get_Employee_by_ID(Convert.ToInt32(textBox1.Text));
     if (Dt != null)
     {
         this.Hide();
         Getempinfo_empmode f = new Getempinfo_empmode(null, this, null, Dt);
         f.Show();
     }
     else
     {
         MsgShow ms = new MsgShow("Invalid ID!");
         ms.ShowDialog();
     }
 }
Пример #3
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "1")
     {
         MsgShow mm = new MsgShow("It is Private!");
         mm.ShowDialog();
         return;
     }
     Dt = cobj.Get_Employee_by_IDmn(Convert.ToInt32(textBox1.Text), Convert.ToInt32(id1));
     if (Dt != null)
     {
         this.Hide();
         Getempinfo_empmode f = new Getempinfo_empmode(this, null, null, Dt);
         f.Show();
     }
     else
     {
         MsgShow ms = new MsgShow("Invalid ID!");
         ms.ShowDialog();
     }
 }