예제 #1
0
 public async void OnNavigatedTo(NavigationParameters parameters)
 {
     if (parameters.ContainsKey(ReportIdKey))
     {
         var reportId = parameters[ReportIdKey] as string;
         if (reportId == null)
         {
             // Case : New Report.
             await _editReport.InitializeForNewReportAsync();
         }
         else
         {
             // Case : Update Report.
         }
     }
 }
예제 #2
0
 public async void OnNavigatedTo(NavigationParameters parameters)
 {
     if (parameters.ContainsKey(ReportIdKey))
     {
         var reportId = parameters[ReportIdKey] as string;
         if (reportId == null)
         {
             // Case : New Report.
             await _editReport.InitializeForNewReportAsync();
         }
         else
         {
             // Case : Update Report.
             await _editReport.InitializeForUpdateReportAsync(reportId);
         }
     }
     Expenses = _editReport.SelectableExpenses.Where(x => x.IsSelected);
 }