private void InitializeFromDefaults() { StaticUiHelperRoutines.SetDistanceTextBox(tbLength, ref _mLength, "Length"); StaticUiHelperRoutines.SetDistanceTextBox(tbWidth, ref _mWidth, "Width"); StaticUiHelperRoutines.SetDistanceTextBox(tbHeight, ref _mHeight, "Height"); StaticUiHelperRoutines.SetUnitlessTextBox(tbExhaustVentilationRate, ref _mExhaustVentilationRate, "ExhaustVentilationRate"); StaticUiHelperRoutines.SetUnitlessTextBox(tbMakeupAirRate, ref _mMakeupAirRate, "MakeupAirRate"); }
private void tbRandomSeed_TextChanged(object sender, EventArgs e) { if (!_ignoreRandomSeedChangeEvent) { _ignoreRandomSeedChangeEvent = true; try { var randomSeedValueObj = GetRandomSeedFromDatabase(); StaticUiHelperRoutines.UnitlessTextBoxValueChanged(tbRandomSeed, ref randomSeedValueObj); } finally { _ignoreRandomSeedChangeEvent = false; } } }
private void tbWidth_TextChanged(object sender, EventArgs e) { StaticUiHelperRoutines.DistTextboxValueChanged(tbWidth, ref _mWidth); }
private void tbHeight_TextChanged(object sender, EventArgs e) { StaticUiHelperRoutines.DistTextboxValueChanged(tbHeight, ref _mHeight); }