コード例 #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");
 }
コード例 #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;
         }
     }
 }
コード例 #3
0
 private void tbWidth_TextChanged(object sender, EventArgs e)
 {
     StaticUiHelperRoutines.DistTextboxValueChanged(tbWidth, ref _mWidth);
 }
コード例 #4
0
 private void tbHeight_TextChanged(object sender, EventArgs e)
 {
     StaticUiHelperRoutines.DistTextboxValueChanged(tbHeight, ref _mHeight);
 }