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()); }
private void Server_ErrorEvent(object sender, System.IO.ErrorEventArgs e) { Assert.Fail(e.GetException().ToString()); }
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 server_ExceptionOccurred(object sender, System.IO.ErrorEventArgs e) { }
void controller_Errored(object sender, System.IO.ErrorEventArgs e) { MessageBox.Show(e.GetException().ToString(), I18N.GetString("V2RayShell Error:") + e.GetException().Message); }
void job_Error(object sender, System.IO.ErrorEventArgs e) { AddListItemMethod(e.GetException().Message); }
private void ControllerErrored(object sender, System.IO.ErrorEventArgs e) { MessageBox.Show(e.GetException().ToString(), String.Format("Xsocks Error: {0}", e.GetException().Message)); }
/// <summary> /// Event when message is reacieved. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void myDev_Message(object sender, System.IO.ErrorEventArgs e) { if (this.myDev.IsConnected) { string inData = e.GetException().Message; // Determin if (inData[0] == '#') { if (inData.Contains("BTN1")) { string[] tokens = inData.Split(this.delimiterChars); if (this.lblButton1.InvokeRequired) { this.lblButton1.BeginInvoke((MethodInvoker) delegate() { this.lblButton1.Text = String.Format("Button1: {0}", tokens[1]); }); } } else if (inData.Contains("BTN2")) { string[] tokens = inData.Split(this.delimiterChars); if (this.lblButton2.InvokeRequired) { this.lblButton2.BeginInvoke((MethodInvoker) delegate() { this.lblButton2.Text = String.Format("Button2: {0}", tokens[1]); }); } } else if (inData.Contains("BTN3")) { string[] tokens = inData.Split(this.delimiterChars); if (this.lblButton3.InvokeRequired) { this.lblButton3.BeginInvoke((MethodInvoker) delegate() { this.lblButton3.Text = String.Format("Button3: {0}", tokens[1]); }); } } else if (inData.Contains("POT1")) { string[] tokens = inData.Split(this.delimiterChars); if (this.lblPot1.InvokeRequired) { this.lblPot1.BeginInvoke((MethodInvoker) delegate() { this.lblPot1.Text = String.Format("Pot1: {0}", tokens[1]); }); } } else if (inData.Contains("POT2")) { string[] tokens = inData.Split(this.delimiterChars); if (this.lblPot2.InvokeRequired) { this.lblPot2.BeginInvoke((MethodInvoker) delegate() { this.lblPot2.Text = String.Format("Pot2: {0}", tokens[1]); }); } } else if (inData.Contains("LIGHT")) { string[] tokens = inData.Split(this.delimiterChars); if (this.lblLight.InvokeRequired) { this.lblLight.BeginInvoke((MethodInvoker) delegate() { this.lblLight.Text = String.Format("Light: {0}", tokens[1]); }); } } else if (inData.Contains("TEMP")) { string[] tokens = inData.Split(this.delimiterChars); if (this.lblTemp.InvokeRequired) { this.lblTemp.BeginInvoke((MethodInvoker) delegate() { this.lblTemp.Text = String.Format("Temp: {0}", tokens[1]); }); } // Send to the cloud. double value = double.Parse(tokens[1]); sensorService.Send(value); } else if (inData.Contains("MIC")) { string[] tokens = inData.Split(this.delimiterChars); if (this.lblMic.InvokeRequired) { this.lblMic.BeginInvoke((MethodInvoker) delegate() { this.lblMic.Text = String.Format("Mic: {0}", tokens[1]); }); } } } //Console.Write("{0}", inData); } }
private static void RegMonitor_Error(Object sender, System.IO.ErrorEventArgs e) { Log.Error(e.GetException(), "An error occurred while executing the registry monitor"); }
void updater_errorEvent(object sender, System.IO.ErrorEventArgs e) { error = true; MessageBox.Show(e.GetException().Message, "Updater Error"); this.Close(); }
protected void OnError(System.IO.ErrorEventArgs e) { }
private void Dialer_Error(object sender, System.IO.ErrorEventArgs e) { this.tMessage.AppendText("连接失败,请检查网络异常!\r\n"); }
private void OnWatcherError(object sender, System.IO.ErrorEventArgs e) { Exception ex = e.GetException(); NotifyBookmarks(b => instance.FileSystemErrorNotify(b, ex)); }
private void Dialer_Error(object sender, System.IO.ErrorEventArgs e) { this.AppendException(e.GetException()); }
private void BufferingFileSystemWatcher_Error(object sender, ErrorEventArgs e) { InvokeHandler(_onErrorHandler, e); }
private void logger_LogWriteException(object sender, System.IO.ErrorEventArgs e) { SynchronizationContextWrapper.SynchronizationContext.Send(o => { richTextBox1.Text = "Failed to log. " + e.GetException(); }, null); }