/// <summary> /// Request to delete the record /// </summary> /// <param name="sender">object</param> /// <param name="args">EventArgs</param> void OnCircleToolbarItemClicked_DeleteRecord(object sender, EventArgs args) { Console.WriteLine("[OnCircleToolbarItemClicked_DeleteRecord] sender : " + sender + ", record: " + ((DetailsPageModel)viewModel).Record); GraphicPopUp popup = new GraphicPopUp { Text = AppResources.Deleted, }; popup.TimedOut += Popup_TimedOut; popup.Show(); // Publish "DeleteVoiceMemo" message for a listener to remove this record from database. MessagingCenter.Send <Page, Record>(this, MessageKeys.DeleteVoiceMemo, ((DetailsPageModel)viewModel).Record); }
void DeleteActionButtonClicked(object sender, EventArgs args) { Console.WriteLine("[RecordListPage.DeleteActionButtonClicked] sender : " + sender + " CheckedNamesCount : " + ViewModel.CheckedNamesCount); if (ViewModel.CheckedNamesCount == 1) { GraphicPopUp popup = new GraphicPopUp { Text = AppResources.Deleted, }; popup.TimedOut += Popup_TimedOut; popup.Show(); } else { ProgressbarPopup popup = new ProgressbarPopup { Text = AppResources.Deleted, ProgressbarText = AppResources.Deleting, }; popup.TimedOut += Popup_TimedOut; popup.Show(); } }