예제 #1
0
        void CreateError(string errorStr)
        {
            StreamerObjectErrorEventArgs error = new StreamerObjectErrorEventArgs();

            error.ErrorString = errorStr;
            StreamerObjectErrorEvent(this, error);
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }