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();
         }
     }
 }
示例#2
0
        private void button4_Click(object sender, RoutedEventArgs e)
        {
            Enter_ID ei = new Enter_ID();

            ei.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();
     }
 }