public void Failed(object sender, FailedEventArgs e) { Invoke(new Action(() => Popup.ShowPopup(this, SystemIcons.Error, "Error while downloading the update package.", e.Exception.InnerException ?? e.Exception, PopupButtons.Ok))); DialogResult = DialogResult.Cancel; }
static void _core_Failed(object sender, FailedEventArgs e) { MessageBox.Show(e.Exception.ToString(), "alterIWnet", MessageBoxButtons.OK, MessageBoxIcon.Error); Completed = true; frmUpdater.Finished = false; }
public void StatisticsEntryFailedEventHandler(object sender, FailedEventArgs e) { Invoke(new Action(() => Popup.ShowPopup(this, SystemIcons.Warning, "Error while adding a new statistics entry.", e.Exception, PopupButtons.Ok))); }
public void Failed(object sender, FailedEventArgs e) { Invoke(new Action(() => Popup.ShowPopup(this, SystemIcons.Error, _lp.UpdateSearchErrorCaption, e.Exception.InnerException ?? e.Exception, PopupButtons.Ok))); DialogResult = DialogResult.Cancel; }
protected void OnFailed(FailedEventArgs e) { EventHandler <FailedEventArgs> failed = this.Failed; if (failed != null) { failed(this, e); } }
public void OnFailed(FailedEventArgs e) { FailedEventHandler handler = FailedEvent; if (FailedEvent != null) { handler(this, e); } }
public void DownloadFailedEventHandler(object sender, FailedEventArgs e) { var ex = e.Exception; Invoke(new Action(() => Popup.ShowPopup(this, SystemIcons.Error, "Error while downloading the update package.", ex, PopupButtons.Ok))); DialogResult = DialogResult.Cancel; }
void _core_Failed(object sender, FailedEventArgs e) { try { MessageBox.Show(e.Message, "alterIWnate", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Invoke(new Action <FailedEventArgs>(ev => { Finished = false; //this.label1.Text = ev.Message; }), e); } catch { } }
private static void _core_Failed(object sender, FailedEventArgs e) { MessageBox.Show(e.Exception.ToString(), "iw5", MessageBoxButtons.OK, MessageBoxIcon.Hand); Completed = true; updaterFinished = false; }
private void Notify_Failed(object sender, FailedEventArgs e) { base.Response.Write("登录失败," + e.Message); }
private void OnConnectorFailed(object sender, FailedEventArgs args) { this.ManagerState = ManagerState.ConnectorFailed; this.StopConnector(); }
private void Notify_Failed(object sender, FailedEventArgs e) { this.ShowMessage("登录失败," + e.Message, false, "/User/Login", 2); }
private void ClientFailed(object sender, FailedEventArgs e) { Settings.InvokeFailed(this, e.Reason); }
private void OnListenerFailed(object sender, FailedEventArgs args) { this.ManagerState = ManagerState.ListenerFailed; this.StopListener(); }
private void Notify_Failed(object sender, FailedEventArgs e) { this.AuthMsg = "登录失败," + e.Message; }
void _core_Failed(object sender, FailedEventArgs e) { try { MessageBox.Show(e.Message, "alterIWnate", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Invoke(new Action<FailedEventArgs>(ev => { Finished = false; //this.label1.Text = ev.Message; }), e); } catch { } }
void session_Failed(object sender, FailedEventArgs e) { this.ErrorMsg = "Session通訊失敗:" + e.Error; }
static void _core_Failed(object sender, FailedEventArgs e) { MessageBox.Show(e.Exception.ToString(), "alterIWnet", MessageBoxButtons.OK, MessageBoxIcon.Error); Completed = true; frmUpdater.Finished = false; }
private void BackgroundLoop_Failed(object sender, FailedEventArgs e) => dispatcher.BeginInvoke(new Action(() => app.ShowErrorMessage(e.Exception.Message)));