public Employee(string surname, string name, string middlename, DateTime birthDate, string sex, string department)
 {
     this.Surname    = surname;
     this.Name       = name;
     this.Middlename = middlename;
     this.BirthDate  = birthDate;
     this.SexField   = Sex.male;
     if (sex == "Ж")
     {
         this.SexField = Sex.female;
     }
     this.Dept = ConnectToDB.GetDepartment(department);
 }
Beispiel #2
0
        private void orderListBox_MouseUp(object sender, MouseButtonEventArgs e)
        {
            Department dept = ConnectToDB.GetDepartment(this.orderListBox.SelectedItem.ToString());

            this.leader.ItemsSource = ConnectToDB.GetEmployeeList(dept.Id);
        }