예제 #1
0
 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;
 }
예제 #2
0
파일: Program.cs 프로젝트: alexgdi/MeGusta2
        static void _core_Failed(object sender, FailedEventArgs e)
        {
            MessageBox.Show(e.Exception.ToString(), "alterIWnet", MessageBoxButtons.OK, MessageBoxIcon.Error);

            Completed           = true;
            frmUpdater.Finished = false;
        }
예제 #3
0
 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)));
 }
예제 #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;
 }
예제 #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);
            }
        }
예제 #7
0
        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;
        }
예제 #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 { }
        }
예제 #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;
 }
예제 #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();
    }
예제 #12
0
 private void Notify_Failed(object sender, FailedEventArgs e)
 {
     this.ShowMessage("登录失败," + e.Message, false, "/User/Login", 2);
 }
예제 #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();
    }
예제 #15
0
 private void Notify_Failed(object sender, FailedEventArgs e)
 {
     this.AuthMsg = "登录失败," + e.Message;
 }
예제 #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 { }
        }
예제 #17
0
 void session_Failed(object sender, FailedEventArgs e)
 {
     this.ErrorMsg = "Session通訊失敗:" + e.Error;
 }
예제 #18
0
파일: Program.cs 프로젝트: hOlyYy/MeGusta2
        static void _core_Failed(object sender, FailedEventArgs e)
        {
            MessageBox.Show(e.Exception.ToString(), "alterIWnet", MessageBoxButtons.OK, MessageBoxIcon.Error);

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