Пример #1
0
 internal ProgressBar([NotNull] LevelValue <double> value, Point position, int width, Color color)
 {
     _value    = value ?? throw new ArgumentNullException(nameof(value));
     _position = position;
     _width    = width;
     _color    = color;
 }
Пример #2
0
        internal Game()
        {
            _player       = new Player();
            _currentScene = CrossRoad.Generate(_currentStage, _player);

            _testValue         = new LevelValue <double>(1000);
            _testValue.Current = 0;
            _testBar4          = new ProgressBar(_testValue, new Point(10, 51), 90, Color.WhiteSmoke);
            _testBar           = new ProgressBar(_testValue, new Point(10, 45), 10, Color.BlueViolet);
            _testBar2          = new ProgressBar(_testValue, new Point(10, 47), 20, Color.RosyBrown);
            _testBar3          = new ProgressBar(_testValue, new Point(10, 49), 60, Color.GreenYellow);
        }