ARCed.Database.Enemies.EditActionDialog.SetAction C# (CSharp) 메소드

SetAction() 개인적인 메소드

private SetAction ( Enemy action ) : void
action RPG.Enemy
리턴 void
        private void SetAction(Enemy.Action action)
        {
            var turnC = !(action.condition_turn_a == 0 && action.condition_turn_b == 1);
            if (turnC)
            {
                this.checkBoxTurn.Checked = true;
                this.numericUpDownTurn.Value = action.condition_turn_a;
                this.numericUpDownTurnX.Value = action.condition_turn_b;
            }
            if (action.condition_hp != 100)
            {
                this.checkBoxHP.Checked = true;
                this.numericUpDownHP.Value = action.condition_hp;
            }
            if (action.condition_level != 1)
            {
                this.checkBoxLevel.Checked = true;
                this.numericUpDownLevel.Value = action.condition_level;
            }
            if (action.condition_switch_id != 0)
            {
                this.checkBoxSwitch.Checked = true;
                this.comboBoxSwitch.SelectedIndex = action.condition_switch_id - 1;
            }
            this.comboBoxBasic.SelectedIndex = action.basic;
            this.comboBoxSkill.SelectedIndex = action.skill_id - 1;
            if (action.kind == 0)
                this.radioButtonBasic.Checked = true;
            else
                this.radioButtonSkill.Checked = true;
            this.numericUpDownRating.Value = action.rating;
        }