Esempio n. 1
0
        //private:
        void ThreadProc()
        {
            try
            {
                bool done = DoWork();
                State = JobState_t.Finished;

                if (done)
                {
                    Succeeded?.Invoke(this);
                }
                else
                {
                    Canceled?.Invoke(this);
                }
            }
            catch (Exception ex)
            {
                State = JobState_t.Finished;
                Aborted?.Invoke(this, ex);
            }

            Aborted  = null;
            Canceled = Succeeded = null;
        }
Esempio n. 2
0
 private void executeLogInCommand()
 {
     _user = Broker.Instance.LogInSuccessful(_firstName, _password);
     if (_user != null)
     {
         Succeeded?.Invoke(this, new UserEventArgs(_user));
         ResetToDefault();
     }
 }
Esempio n. 3
0
        private void OnSucceeded(string paymentId)
        {
            if (paymentId == null)
            {
                OnFailed(new ArgumentNullException(nameof(paymentId)));
                return;
            }

            new CardManager().Clear(order.CustomerKey);
            SetPreviousSettings();
            Succeeded?.Invoke(paymentId);
        }
Esempio n. 4
0
 private void pass_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key.Equals(Key.Enter))
     {
         if (pass.Password.Equals("neuronaware"))
         {
             pass.Password = null;
             Succeeded?.Invoke(sender, e);
         }
         else
         {
             Cancelled?.Invoke(sender, e);
             pass.Password = null;
             MessageBox.Show("비밀번호가 일치하지 않습니다.");
         }
     }
 }
Esempio n. 5
0
        //private:
        void ThreadProc()
        {
            try
            {
                DoWork();
                State = JobState_t.Finished;
                Succeeded?.Invoke(this);
            }
            catch (Exception ex)
            {
                State = JobState_t.Finished;
                Aborted?.Invoke(this, ex);
            }

            Aborted   = null;
            Succeeded = null;
        }
Esempio n. 6
0
        //private:
        void ThreadProc()
        {
            State = State_t.Running;

            try
            {
                DoWork();
                State = State_t.Finished;
                Succeeded?.Invoke(this);
            }
            catch (ThreadAbortException)
            {
                Thread.ResetAbort();
                State = State_t.Finished;
                Canceled?.Invoke(this);
            }
            catch (Exception ex)
            {
                State = State_t.Finished;
                Aborted?.Invoke(this, ex);
            }
        }
 private void executeGoBackCommand()
 {
     Succeeded?.Invoke(this, new EventArgs());
 }
 private void executeGoBackCommand()
 {
     Succeeded?.Invoke(this, new EventArgs());
     ResetToDefault();
     Material = null;
 }
 private void executeRequestCorpusCommand()
 {
     _result = HomeViewModelResultType.RequestCorpus;
     Succeeded?.Invoke(this, new EventArgs());
 }
Esempio n. 10
0
 protected void OnSucceeded()
 {
     Succeeded?.Invoke(this, EventArgs.Empty);
     Completed?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 11
0
 private void executeGoBackCommand()
 {
     ResetToDefault();
     Succeeded?.Invoke(this, new EventArgs());
 }
Esempio n. 12
0
 internal void OnSucceeded() => Succeeded?.Invoke(this, this);
Esempio n. 13
0
 public override void OnAuthenticationSucceeded(BiometricPrompt.AuthenticationResult result)
 {
     base.OnAuthenticationSucceeded(result);
     Succeeded?.Invoke(this, result);
 }
 private void OnSucceeded()
 {
     Unsubscribe();
     Succeeded?.Invoke();
 }