public CheckBox(string name, Settings.Setting<bool> value = null, bool selectable = true ) : base(name, selectable) { this.value = value; if (this.value != null) OnSelect += () => this.value.Value = !this.value.Value; }