コード例 #1
0
ファイル: ReadViewModel.cs プロジェクト: Ryanor/Notes3.0
        public async void DeleteNote()
        {

            DialogService dialog = new DialogService();
            await dialog.ShowMessage("Do you really want to delete the selected note?", "Delete selected note!", "YES, delete", "NO, let me return",
                async confirmed =>
                {
                    if (confirmed)
                    {
                        await dataService.DeleteNote(SelectedNote);
                    }

                });
        }