Пример #1
0
        private async void CommandInvokedHandler(IUICommand command)
        {
            if (command.Label.Equals(OK_LABEL))
            {
                try
                {
                    await RestAPI.DeleteNote(note.Id);

                    Frame.Navigate(typeof(MainPage), note);
                }
                catch (HttpRequestException)
                {
                    await new MessageDialog("Brak połączenia z Internetem.").ShowAsync();
                }
            }
        }