Ejemplo 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;
        }
Ejemplo n.º 2
0
 private void executeLogInCommand()
 {
     _user = Broker.Instance.LogInSuccessful(_firstName, _password);
     if (_user != null)
     {
         Succeeded?.Invoke(this, new UserEventArgs(_user));
         ResetToDefault();
     }
 }
Ejemplo 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);
        }
Ejemplo 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("비밀번호가 일치하지 않습니다.");
         }
     }
 }
Ejemplo 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;
        }
Ejemplo 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());
 }
Ejemplo n.º 10
0
 protected void OnSucceeded()
 {
     Succeeded?.Invoke(this, EventArgs.Empty);
     Completed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 11
0
 private void executeGoBackCommand()
 {
     ResetToDefault();
     Succeeded?.Invoke(this, new EventArgs());
 }
Ejemplo n.º 12
0
 internal void OnSucceeded() => Succeeded?.Invoke(this, this);
Ejemplo n.º 13
0
 public override void OnAuthenticationSucceeded(BiometricPrompt.AuthenticationResult result)
 {
     base.OnAuthenticationSucceeded(result);
     Succeeded?.Invoke(this, result);
 }
 private void OnSucceeded()
 {
     Unsubscribe();
     Succeeded?.Invoke();
 }