public MainWindowViewModel() { OpenFlyoutCommand = new DelegateCommand <string>(OpenFlyoutExecute); TypeAttendanceCommand = new DelegateCommand(TypeAttendanceExecute); MainPOSViewModel = new MainPOSViewModel(); ManagementViewModel = new ManagementViewModel(); XReportCommand = new DelegateCommand(XReportExecute); CloseDayCommand = new DelegateCommand(CloseDayExecute); }
private void OpenMainPos() { Employee emp = Dialogs.GetEmployeeInShift(); if (emp != null) { MainPOSViewModel = new MainPOSViewModel(); MainPOSViewModel.CurrentOrder.Employee = emp; IsMainPosOpen = true; } }