ARCed.Database.States.StateMainForm.RefreshCurrentObject C# (CSharp) Method

RefreshCurrentObject() public method

Refreshes the form to display data for the currently selected RPG.Item.
public RefreshCurrentObject ( ) : void
return void
        public override void RefreshCurrentObject()
        {
            SuppressEvents = true;
            textBoxName.Text = _state.name;
            checkBoxNonrestistance.Checked = _state.nonresistance;
            checkBoxRegardHp0.Checked = _state.zero_hp;
            checkBoxNoExp.Checked = _state.cant_get_exp;
            checkBoxNoEvade.Checked = _state.cant_evade;
            comboBoxAnimation.SelectedIndex = _state.animation_id;
            comboBoxRestriction.SelectedIndex = _state.restriction;
            checkGroupBoxElements.CheckAll(false);
            foreach (int id in _state.guard_element_set)
                checkGroupBoxElements.SetItemChecked(id - 1, true);
            checkedListBoxStates.SetAll(0);
            foreach (int id in _state.plus_state_set)
                checkedListBoxStates.SetItemIndex(id - 1, 1);
            foreach (int id in _state.minus_state_set)
                checkedListBoxStates.SetItemIndex(id - 1, 2);
            checkBoxReleaseEndBattle.Checked = _state.battle_only;
            numericTurns.Value = _state.hold_turn;
            numericTurnChance.Value = _state.auto_release_prob;
            numericDamageChance.Value = _state.shock_release_prob;
            RefreshParameters();

            //noteTextBox.NoteText = _state.note;
            SuppressEvents = false;
        }