Esempio n. 1
0
 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");
 }
Esempio n. 2
0
 private void tbRandomSeed_TextChanged(object sender, EventArgs e)
 {
     if (!_ignoreRandomSeedChangeEvent)
     {
         _ignoreRandomSeedChangeEvent = true;
         try
         {
             var randomSeedValueObj = GetRandomSeedFromDatabase();
             StaticUiHelperRoutines.UnitlessTextBoxValueChanged(tbRandomSeed, ref randomSeedValueObj);
         }
         finally
         {
             _ignoreRandomSeedChangeEvent = false;
         }
     }
 }
Esempio n. 3
0
 private void tbWidth_TextChanged(object sender, EventArgs e)
 {
     StaticUiHelperRoutines.DistTextboxValueChanged(tbWidth, ref _mWidth);
 }
Esempio n. 4
0
 private void tbHeight_TextChanged(object sender, EventArgs e)
 {
     StaticUiHelperRoutines.DistTextboxValueChanged(tbHeight, ref _mHeight);
 }