void InstallProcessor_ActionComplete(object sender, ActionCompleteEventArgs e) { this.UiThreadInvoke(() => { _timer.Enabled = true; }); }
private void OnAbilityComplete(ActionCompleteEventArgs args) { var handler = this.ActionComplete; if (handler != null) { handler(this, args); } }
void InstallProcessor_ActionComplete(object sender, ActionCompleteEventArgs e) { this.UiThreadInvoke(() => { _timer.Enabled = true; if (e.Exception != null) { Utils.HandleError(e.Exception); } }); }
void _progress_ActionComplete(object sender, ActionCompleteEventArgs e) { this.UiThreadInvoke(() => { if (e.Exception == null) { _timer.Enabled = true; } else { MessageBox.Show(e.Exception.Message); } }); }
void _progress_ActionComplete(object sender, ActionCompleteEventArgs e) { this.UiThreadInvoke(() => { if (e.Exception == null) { _timer.Enabled = true; } else { lblMessage.Text = "ERROR: " + e.Exception.Message; Utils.HandleError(e.Exception); GlobalProgress.Instance.Error(); } }); }
private void actionComplete(object sender, ActionCompleteEventArgs args) { if (args.TurnOver) { Debug.Log("[[Actor Turn Over]]: Actor " + this.SelectedActor); this.SelectedActor.TurnState = ActorState.TurnOver; this.clearSelection(); this.actorsProcessedThisTurn++; } else { this.SelectedActor.TurnState = ActorState.AwaitingCommand; this.showButtonStrip(this.SelectedActor); } var controller = sender as AbilityController; controller.ActionComplete -= actionComplete; }
void InstallProcessor_ActionComplete(object sender, ActionCompleteEventArgs e) { this.UiThreadInvoke(() => { _timer.Enabled = true; if (e.Exception != null) Utils.HandleError(e.Exception); }); }