Ejemplo n.º 1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            EmployeeEmploymentDateDG dd = new EmployeeEmploymentDateDG();

            dd.Show();
            this.Close();
        }
 private void button_Click(object sender, RoutedEventArgs e)
 {
     if (textBox.Text == "")
     {
         MessageBox.Show("Please Enter Valid Data !");
     }
     else
     {
         ans = textBox.Text;
         EmployeeEmploymentDateDG dd = new EmployeeEmploymentDateDG();
         dd.Show();
         this.Close();
     }
 }
        private void button_Click(object sender, RoutedEventArgs e)
        {
            List <Employee> filtered = new List <Employee>();

            for (int i = 0; i < Containers.Employee_list.Count(); i++)
            {
                int x = Containers.Employee_list[i].Working_year_calc();
                if (x.ToString() == textBox.Text)
                {
                    filtered.Add(Containers.Employee_list[i]);
                }
            }
            EmployeeEmploymentDateDG dd = new EmployeeEmploymentDateDG();

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