void InstallProcessor_ActionComplete(object sender, ActionCompleteEventArgs e)
 {
     this.UiThreadInvoke(() =>
       {
     _timer.Enabled = true;
       });
 }
Example #2
0
 void InstallProcessor_ActionComplete(object sender, ActionCompleteEventArgs e)
 {
     this.UiThreadInvoke(() =>
     {
         _timer.Enabled = true;
     });
 }
Example #3
0
 private void OnAbilityComplete(ActionCompleteEventArgs args)
 {
     var handler = this.ActionComplete;
     if (handler != null)
     {
         handler(this, args);
     }
 }
Example #4
0
    private void OnAbilityComplete(ActionCompleteEventArgs args)
    {
        var handler = this.ActionComplete;

        if (handler != null)
        {
            handler(this, args);
        }
    }
Example #5
0
 void InstallProcessor_ActionComplete(object sender, ActionCompleteEventArgs e)
 {
     this.UiThreadInvoke(() =>
     {
         _timer.Enabled = true;
         if (e.Exception != null)
         {
             Utils.HandleError(e.Exception);
         }
     });
 }
Example #6
0
 void _progress_ActionComplete(object sender, ActionCompleteEventArgs e)
 {
     this.UiThreadInvoke(() =>
     {
         if (e.Exception == null)
         {
             _timer.Enabled = true;
         }
         else
         {
             MessageBox.Show(e.Exception.Message);
         }
     });
 }
Example #7
0
 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();
         }
     });
 }
Example #8
0
    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);
   });
 }
Example #10
0
    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 _progress_ActionComplete(object sender, ActionCompleteEventArgs e)
 {
     this.UiThreadInvoke(() =>
       {
     if (e.Exception == null)
     {
       _timer.Enabled = true;
     }
     else
     {
       MessageBox.Show(e.Exception.Message);
     }
       });
 }