private async void Button_Clicked(object sender, EventArgs e) { string btText = (sender as Button).Text; if (btText.Equals(AppResources.Dialog_Ok)) { noti.NotiTime = DateTime.Now.AddMinutes(GetInputTimeToMinute()); notiManager.EditList(noti, NotiManager.EditType.EditOnlyTime); } await PopupNavigation.Instance.PopAsync(); }
internal override void RemoveItem() { base.RemoveItem(); if (ListView.SelectedItem != null) { NotiManager.EditList(ListView.SelectedItem as Noti, NotiManager.EditType.Remove); Utils.RefreshCollectionView(ListView, Notis); } else { DependencyService.Get <IToast>().Show(AppResources.NotiSettingPage_NotSelectedToast_Message); } }
private void FurnishingSpeedUpToolbarItem_Clicked(object sender, EventArgs e) { if (ListView.SelectedItems.Count < 0) { return; } FurnishingNoti selectedNoti = (FurnishingNoti)ListView.SelectedItem; selectedNoti.NotiTime = selectedNoti.NotiTime.AddHours(-FEnv.SpeedUpHour); NotiManager.EditList(selectedNoti, NotiManager.EditType.EditOnlyTime); Utils.RefreshCollectionView(ListView, Notis); }