public async void DoLoad() { if (IsNew) { return; } Reminder = await CryptoDelegate.GetReminderDetails(Reminder); }
public async void RemoveAlarm() { var success = await CryptoDelegate.RemoveReminder(Reminder); if (success) { DialogService.ShowSuccessDialog(); //await Task.Delay(2000); Close(this); } }
public async void DoLoadCryptoCurrency() { DialogService.ShowDialog(true); try { CryptoCurrencyList = await CryptoDelegate.GetCryptoCurrencyList(); SortedCryptoCurrencyList = CryptoCurrencyList; } catch (Exception ex) { } DialogService.ShowDialog(false); }
public async void UpdateAlarm() { if (!Reminder.IsExactValueSet && !Reminder.IsLowerLimitSet && !Reminder.IsUpperLimitSet) { //no value set DialogService.ShowErrorDialog(); //await Task.Delay(2000); return; } Reminder = await CryptoDelegate.SaveReminder(Reminder); DialogService.ShowSuccessDialog(); //await Task.Delay(2000); Close(this); }
public async void DoLoadMyCryptoCurrency() { DialogService.ShowDialog(true); try { var searchDto = new ReminderSearchDto { Type = SearchType.GroupedReminders }; MyCryptoCurrencyList = await CryptoDelegate.GetReminder(searchDto); SortedMyCryptoCurrencyList = MyCryptoCurrencyList; } catch (Exception ex) { } DialogService.ShowDialog(false); }
public async void DoLoadReminders() { DialogService.ShowDialog(true); try { var searchDto = new ReminderSearchDto { Type = SearchType.AllRemindersFor1Coin, cryptoCurrency = Current }; Reminders = await CryptoDelegate.GetReminder(searchDto); SortedReminders = Reminders; } catch (Exception ex) { } DialogService.ShowDialog(false); }