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;
 }
Example #2
0
        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)));
 }
Example #4
0
 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;
 }
Example #5
0
        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;
        }
Example #8
0
        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 { }
        }
Example #9
0
 private static void _core_Failed(object sender, FailedEventArgs e)
 {
     MessageBox.Show(e.Exception.ToString(), "iw5", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     Completed       = true;
     updaterFinished = false;
 }
Example #10
0
 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();
    }
Example #12
0
 private void Notify_Failed(object sender, FailedEventArgs e)
 {
     this.ShowMessage("登录失败," + e.Message, false, "/User/Login", 2);
 }
Example #13
0
 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();
    }
Example #15
0
 private void Notify_Failed(object sender, FailedEventArgs e)
 {
     this.AuthMsg = "登录失败," + e.Message;
 }
Example #16
0
        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 { }
        }
Example #17
0
 void session_Failed(object sender, FailedEventArgs e)
 {
     this.ErrorMsg = "Session通訊失敗:" + e.Error;
 }
Example #18
0
        static void _core_Failed(object sender, FailedEventArgs e)
        {
            MessageBox.Show(e.Exception.ToString(), "alterIWnet", MessageBoxButtons.OK, MessageBoxIcon.Error);

            Completed = true;
            frmUpdater.Finished = false;
        }
Example #19
0
 private void BackgroundLoop_Failed(object sender, FailedEventArgs e)
 => dispatcher.BeginInvoke(new Action(() => app.ShowErrorMessage(e.Exception.Message)));