Ejemplo n.º 1
0
        }                                                  //денег в кассе

        //конструктор сцены
        public ParkingScene(ParkingMap map, ParkingSceneSettings settings)
        {
            this.settings = settings;
            this.map      = map;
            MoneyInCash   = 0.0f;
            map.Clear();
        }
Ejemplo n.º 2
0
 public Settings(ParkingSceneSettings settings)
 {
     InitializeComponent();
     this.settings = settings;
     if (settings.Method == Method.Determined)
     {
         radioButton1.Checked = true;
         numericUpDown1.Value = settings.Interval;
     }
     else
     {
         radioButton2.Checked = true;
         if (settings.DistributionLaw == DistributionLaw.Normal)
         {
             radioButton3.Checked = true;
             numericUpDown5.Value = settings.M;
             numericUpDown6.Value = settings.Sigma;
         }
         else if (settings.DistributionLaw == DistributionLaw.Exponential)
         {
             radioButton4.Checked = true;
             numericUpDown7.Value = settings.ExpA;
             numericUpDown9.Value = settings.ExpB;
             numericUpDown8.Value = (decimal)settings.Lambda;
         }
         else
         {
             radioButton5.Checked = true;
             numericUpDown3.Value = settings.UniformA;
             numericUpDown4.Value = settings.UniformB;
         }
     }
 }
Ejemplo n.º 3
0
        private ParkingSceneSettings settings; //настройки сцены

        #endregion Fields

        #region Constructors

        //конструктор сцены
        public ParkingScene(ParkingMap map, ParkingSceneSettings settings)
        {
            this.settings = settings;
            this.map = map;
            MoneyInCash = 0.0f;
            map.Clear();
        }
Ejemplo n.º 4
0
 public Settings(ParkingSceneSettings settings)
 {
     InitializeComponent();
     this.settings = settings;
     if (settings.Method == Method.Determined)
     {
         radioButton1.Checked = true;
         numericUpDown1.Value = settings.Interval;
     }
     else
     {
         radioButton2.Checked = true;
         if (settings.DistributionLaw == DistributionLaw.Normal)
         {
             radioButton3.Checked = true;
             numericUpDown5.Value = settings.M;
             numericUpDown6.Value = settings.Sigma;
         }
         else if (settings.DistributionLaw == DistributionLaw.Exponential)
         {
             radioButton4.Checked = true;
             numericUpDown7.Value = settings.ExpA;
             numericUpDown9.Value = settings.ExpB;
             numericUpDown8.Value = (decimal)settings.Lambda;
         }
         else
         {
             radioButton5.Checked = true;
             numericUpDown3.Value = settings.UniformA;
             numericUpDown4.Value = settings.UniformB;
         }
     }
 }