//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; }
private void executeLogInCommand() { _user = Broker.Instance.LogInSuccessful(_firstName, _password); if (_user != null) { Succeeded?.Invoke(this, new UserEventArgs(_user)); ResetToDefault(); } }
private void OnSucceeded(string paymentId) { if (paymentId == null) { OnFailed(new ArgumentNullException(nameof(paymentId))); return; } new CardManager().Clear(order.CustomerKey); SetPreviousSettings(); Succeeded?.Invoke(paymentId); }
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("비밀번호가 일치하지 않습니다."); } } }
//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; }
//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()); }
protected void OnSucceeded() { Succeeded?.Invoke(this, EventArgs.Empty); Completed?.Invoke(this, EventArgs.Empty); }
private void executeGoBackCommand() { ResetToDefault(); Succeeded?.Invoke(this, new EventArgs()); }
internal void OnSucceeded() => Succeeded?.Invoke(this, this);
public override void OnAuthenticationSucceeded(BiometricPrompt.AuthenticationResult result) { base.OnAuthenticationSucceeded(result); Succeeded?.Invoke(this, result); }
private void OnSucceeded() { Unsubscribe(); Succeeded?.Invoke(); }