private void button_Click(object sender, RoutedEventArgs e)
        {
            Enter_ID_Employee eie = new Enter_ID_Employee();

            eie.Show();
            this.Close();
        }
 private void button_Click(object sender, RoutedEventArgs e)
 {
     if (co.Text == "")
     {
         MessageBox.Show("Please Choose An Option");
     }
     else
     {
         if (co.Text == "Employee")
         {
             if (employeelogin.empid == true)
             {
                 MessageBox.Show("You are not alowed to edit or delete employee");
             }
             else
             {
                 Enter_ID_Employee nn = new Enter_ID_Employee();
                 nn.Show();
                 this.Close();
             }
         }
         else if (co.Text == "Player")
         {
             Enter_ID nn = new Enter_ID();
             nn.Show();
             this.Close();
         }
     }
 }
예제 #3
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     if (choose.Text == "Player")
     {
         Enter_ID ei = new Enter_ID();
         ei.Show();
     }
     else if (choose.Text == "Employee")
     {
         Enter_ID_Employee ei = new Enter_ID_Employee();
         ei.Show();
     }
 }