void h_OccuredError(object sender, System.IO.ErrorEventArgs e) { lblInfo.Text = "批次發生錯誤 !!"; Application.DoEvents(); MessageBox.Show("匯入時發生錯誤 : \n" + e.GetException().Message, "錯誤", MessageBoxButtons.OK, MessageBoxIcon.Error); lblInfo.Text = "取消作業中 ....."; Application.DoEvents(); BatchHelper h = sender as BatchHelper; h.Cancel(); lblInfo.Text = "取消完畢 !!"; Application.DoEvents(); this.Close(); }
void mWatcher_Error( object sender, System.IO.ErrorEventArgs e ) { System.Diagnostics.Debug.WriteLine( "Watcher error: " + e.GetException().Message ); }
private void fsw_Error(Object sender, System.IO.ErrorEventArgs e) { Exception exp = e.GetException(); textBox1.Text = exp.Message + textBox1.Text; }
void controller_UpdatePACFromGFWListError(object sender, System.IO.ErrorEventArgs e) { ShowBalloonTip(I18N.GetString("Failed to update PAC file"), e.GetException().Message, ToolTipIcon.Error, 5000); Logging.LogUsefulException(e.GetException()); }
void controller_Errored(object sender, System.IO.ErrorEventArgs e) { MessageBox.Show(e.GetException().ToString(), String.Format(I18N.GetString("Shadowsocks Error: {0}"), e.GetException().Message)); }
private void Dialer_Error(object sender, System.IO.ErrorEventArgs e) { this.AppendException(e.GetException()); }
private void onOqatInfo(object sender, System.IO.ErrorEventArgs e) { Exception ex = e.GetException(); errors.Add(new ErrorViewModel(ex.Message, ex.Source, "info")); }
private void Target_Error(object sender, System.IO.ErrorEventArgs e) { this.error = e.GetException(); this.waitHandle.Set(); }
void zipE_ErrorOccurrence(object sender, System.IO.ErrorEventArgs e) { MainReflector.CallReporter(sender, new ReportEventArgs("ZipE.zipE_ErrorOccurrence", string.Format(@"Exception Message: {0}", e.GetException().Message))); }
private void _rasConnectionWatcher_Error(object sender, System.IO.ErrorEventArgs e) { Console.WriteLine("Error"); this._taskCompletionSource.SetException(e.GetException()); }
void updater_errorEvent(object sender, System.IO.ErrorEventArgs e) { error = true; MessageBox.Show(e.GetException().Message, "Updater Error"); this.Close(); }
private void _FileSystemWatcher_Error(object sender, System.IO.ErrorEventArgs e) { try { Debugger.Break(); Exception exception = e.GetException(); if (exception == null || String.IsNullOrEmpty(exception.Message)) { Log.Information("Error processing UploadFileWatcher - Unknown"); } else { Log.Information("Error processing UploadFileWatcher - " + exception.Message); } Start(); } catch (Exception exception) { Log.Error(exception, false); } }
private void ControllerErrored(object sender, System.IO.ErrorEventArgs e) { MessageBox.Show(e.GetException().ToString(), String.Format("Xsocks Error: {0}", e.GetException().Message)); }
private void SubDirectories_LoadingError(object sender, System.IO.ErrorEventArgs e) { if (_isOpening) { MessageBoxService.Instance.ShowError(e.GetException().Message); Parent.Open(); } _isOpening = false; }