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. } } }
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); }