Ejemplo n.º 1
0
        public AssignEmployeesViewModel(WorksheetViewModel worksheetVM)
        {
            _employeeRepository = new EmployeeRepository();

            _worksheetVM       = worksheetVM;
            AssignedEmployees  = new ObservableCollection <Employee>(_worksheetVM.AssignedEmployees);
            AvailableEmployees = RetrieveAvailableEmployees();

            CanSelectEmployee = false;
            CanRemoveEmployee = false;
        }
Ejemplo n.º 2
0
        public WorksheetViewModel SelectCustomer()
        {
            WorksheetViewModel worksheetVM = new WorksheetViewModel(SelectedCustomer);

            return(worksheetVM);
        }