private void RefreshStates() { this.checkGroupBoxStates.CheckAll(false); foreach (int id in this._armor.guard_state_set) this.checkGroupBoxStates.SetItemChecked(id - 1, true); }