void checkBox_CheckedChanged(object sender, EventArgs e) { if (CheckChanged != null) { CheckChangedArgs args = new CheckChangedArgs(); CheckChanged(this.checkBox.Checked, args); } }
private void densityOptionalParameterUserControl_CheckChanged(object aSender, CheckChangedArgs aEventArgs) { bool isChecked = (Boolean)aSender; string density = this.primaryDensity.ToString(); if (isChecked) { this.densityInfoLabel.Text = ConvertStringToFloat(density).ToString(); } else { this.densityOptionalParameterUserControl.DefaultValue = "2,55"; } }
void inductionOptionalParameterUserControl_CheckedChanged(object aSender, CheckChangedArgs aEventArgs) { bool isChecked = (Boolean)aSender; string induction = this.primaryInduction.ToString(); if (isChecked) { this.inductionInfoLabel.Text = ConvertStringToFloat(induction).ToString(); } else { this.inductionOptionalParameterUserControl.DefaultValue = "1,2"; } }