示例#1
0
 public async Task ShowReportsForApprovalAsync()
 {
     await this.ViewService.ExecuteBusyActionAsync(
         async() =>
     {
         ApproveExpenseReportsViewModel approveViewModel = new ApproveExpenseReportsViewModel();
         await approveViewModel.LoadReportsForApprovalAsync();
         this.CurrentViewModel = approveViewModel;
     });
 }
示例#2
0
        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;
            }
        }