Dialog for getting user-defined RPG.Enemy.Action.
Inheritance: System.Windows.Forms.Form
 private void ButtonEditActionClick(object sender, EventArgs e)
 {
     int index = this.GetActionIndex();
     using (var dialog = new EditActionDialog())
     {
         dialog.EnemyAction = this._enemy.actions[index];
         if (dialog.ShowDialog(this) == DialogResult.OK)
         {
             this._enemy.actions[index] = dialog.EnemyAction;
             this.RefreshActions();
         }
     }
 }
 private void ButtonAddActionClick(object sender, EventArgs e)
 {
     using (var dialog = new EditActionDialog())
     {
         if (dialog.ShowDialog(this) == DialogResult.OK)
         {
             this._enemy.actions.Add(dialog.EnemyAction);
             this.RefreshActions();
         }
     }
 }