public async Task ShowReportsForApprovalAsync() { await this.ViewService.ExecuteBusyActionAsync( async() => { ApproveExpenseReportsViewModel approveViewModel = new ApproveExpenseReportsViewModel(); await approveViewModel.LoadReportsForApprovalAsync(); this.CurrentViewModel = approveViewModel; }); }
private void OnCurrentViewTypeChanged() { switch (CurrentViewType) { case ReportsSubviewType.SavedReports: case ReportsSubviewType.PendingReports: case ReportsSubviewType.PastReports: CurrentViewModel = new ExpenseReportsViewModel(); break; case ReportsSubviewType.ApprovalsReports: CurrentViewModel = new ApproveExpenseReportsViewModel(); break; case ReportsSubviewType.OutgoingCharges: CurrentViewModel = new ChargesViewModel(); break; } }