private void button_Click(object sender, RoutedEventArgs e)
        {
            EmployeesDepartmentDataG edg = new EmployeesDepartmentDataG();

            edg.Show();
            this.Close();
        }
예제 #2
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     if (Department.Text == "")
     {
         MessageBox.Show("Choose An Option !");
     }
     else
     {
         dep = Department.Text;
         EmployeesDepartmentDataG edg = new EmployeesDepartmentDataG();
         edg.Show();
         this.Close();
     }
 }
        private void button_Click(object sender, RoutedEventArgs e)
        {
            List <Employee> filter = new List <Employee>();

            for (int i = 0; i < Containers.Employee_list.Count(); i++)
            {
                if (Containers.Employee_list[i].GetDepartment() == textBox.Text)
                {
                    filter.Add(Containers.Employee_list[i]);
                }
            }
            EmployeesDepartmentDataG edg = new EmployeesDepartmentDataG();

            edg.Show();
            this.Close();
        }