void CreateError(string errorStr) { StreamerObjectErrorEventArgs error = new StreamerObjectErrorEventArgs(); error.ErrorString = errorStr; StreamerObjectErrorEvent(this, error); }
async void streamerObject_StreamerObjectErrorEvent(object source, StreamerObjectErrorEventArgs e) { MessageDialog errorMessage = new MessageDialog("Uh...something went wrong...\nDetailed info: " + e.ErrorString); await errorMessage.ShowAsync(); Frame.GoBack(); }
async void streamerObject_StreamerObjectErrorEvent(object source, StreamerObjectErrorEventArgs e) { MessageDialog errorMessage = new MessageDialog("Uh...something went wrong...\nDetailed info: " + e.ErrorString); errorMessage.Commands.Add(new UICommand("OK", new UICommandInvokedHandler((command) => { Frame.GoBack(); }))); await errorMessage.ShowAsync(); }