public EditGatheringItemPage(NotiManager notiManager, NotiManager.EditType type, GatheringItemNoti noti = null) { editType = type; this.notiManager = notiManager; Noti = noti; InitializeComponent(); Title = (editType == NotiManager.EditType.Add) ? AppResources.EditItemPage_Title_New : AppResources.EditItemPage_Title_Edit; InitPicker(); }
private async void ApplySetting() { GIEnv.GItemType type = (GIEnv.GItemType)GatheringItemTypePicker.SelectedIndex; string note = GatheringItemNoteEntry.Text; GatheringItemNotiManager manager = notiManager as GatheringItemNotiManager; if (editType == NotiManager.EditType.Add) { Noti = new GatheringItemNoti(type); } else if (editType == NotiManager.EditType.Edit) { Noti.EditItemType(type); } Noti.ItemNote = note; manager.EditList(Noti, editType); await Navigation.PopAsync(); }