Пример #1
0
 public AddEditStaff(StaffMemberViewModel Staff)
 {
     aesVM                 = new AddEditStaffViewModel(Staff, false);
     DataContext           = aesVM;
     aesVM.ClosingRequest += (sender, e) => this.Close();
     InitializeComponent();
 }
Пример #2
0
        public AddEditStaff(List <Preference> preferences)
        {
            var member = new StaffMemberViewModel(new StaffMember("", 0, DateTime.Today, "", "", preferences, ""));

            aesVM                 = new AddEditStaffViewModel(member, true);
            DataContext           = aesVM;
            aesVM.ClosingRequest += (sender, e) => this.Close();
            InitializeComponent();
        }