public void Update_PA() { AdminPAViewModel = new AdminPAViewModel() { FullName = (IoC.Application_Work.Current_User as Employee).FullName, PhoneNumber = (IoC.Application_Work.Current_User as Employee).PhoneNumber, Email = (IoC.Application_Work.Current_User as Employee).Email, Position = (IoC.Application_Work.Current_User as Employee).Position, }; }
public AdminViewModel() { Drivers = new ObservableCollection <AdminEmployeeViewModel>(); Dispatchers = new ObservableCollection <AdminEmployeeViewModel>(); Orders = new ObservableCollection <UserProductsViewModel>(); AdminPAViewModel = new AdminPAViewModel(); CreateNewEmployeeViewModel = new CreateNewEmployeeViewModel(); CreateNewCarViewModel = new CreateNewCarViewModel(); EmployeesCommand = new RelayCommand(EmployeesMethod); NewEmployeeCommand = new RelayCommand(ShowCreateNewEmployeeMethod); ShowNewCarCommand = new RelayCommand(ShowCreateNewCarMethod); PersonalInfoCommand = new RelayCommand(PersonalInfoMethod); OrdersCommand = new RelayCommand(OrdersToAdminMethod); ExitCommand = new RelayCommand(() => IoC.Application.GoToPage(ApplicationPage.Login)); ShowSideBarCommand = new RelayCommand(() => ShowAdminSidebar = true); }