Example #1
0
 private void ResetDiary()
 {
     //Deletes the diary. Opening the diary part of the app still creates a new diary file anyway.
     UserDiaryFileController.DeleteDiary();
     Console.WriteLine("Diary Deleted");
     RefreshInfo();
 }
        private async void ResetDiary()
        {
            //Deletes the diary. Opening the diary part of the app still creates a new diary file anyway.
            bool answer = await Application.Current.MainPage.DisplayAlert("Reset Journal", "Are you sure you want to reset the Journal?", "Yes", "No");

            if (answer)
            {
                UserDiaryFileController.DeleteDiary();
                Console.WriteLine("Diary Deleted");
                RefreshInfo();
            }
        }