private void ResetSelectAllDriveGas() { for (int i = 0; i < 21; i++) { CompMultiBar obj_set_focus = (CompMultiBar)this.m_dataBinding.GetControlByName(this, "compMultiBarCompoundDriveGas" + i.ToString()); obj_set_focus.Choise = false; } }
private void compInputBoxDriveGas_Enter(object sender, EventArgs e) { this.ResetSelectAllDriveGas(); CompInputBox obj = (CompInputBox)sender; string number = FuncString.GetOnlyNumeric(obj.Name); CompMultiBar obj_set_focus = (CompMultiBar)this.m_dataBinding.GetControlByName(this, "compMultiBarCompoundDriveGas" + number); obj_set_focus.Choise = true; }
private void compInputBoxDriveGas_Leave(object sender, EventArgs e) { CompInputBox obj = (CompInputBox)sender; string number = FuncString.GetOnlyNumeric(obj.Name); CompMultiBar obj_set_focus = (CompMultiBar)this.m_dataBinding.GetControlByName(this, "compMultiBarCompoundDriveGas" + number); obj_set_focus.Choise = false; this.InputBox_Leave(sender, e); }
private void compMultiBarBurnerLoad_Click(object sender, EventArgs e) { this.ResetSelectAllBurnerLoad(); CompMultiBar obj = (CompMultiBar)sender; string number = FuncString.GetOnlyNumeric(obj.Name); obj.Choise = true; CompInputBox obj_set_focus = (CompInputBox)this.m_dataBinding.GetControlByName(this, "compInputBoxBurnerLoad" + number); obj_set_focus.Focus(); }