Пример #1
0
 /// <summary>
 /// Creates a new instance of DashControl
 /// </summary>
 public DashControl()
 {
     _blockSize.Width         = 10F;
     _blockSize.Height        = 10F;
     _horizontalSlider        = new DashSliderHorizontal();
     _horizontalSlider.Size   = new SizeF(_blockSize.Width, _blockSize.Height * 3 / 2);
     _verticalSlider          = new DashSliderVertical();
     _verticalSlider.Size     = new SizeF(_blockSize.Width * 3 / 2, _blockSize.Height);
     _buttonDownDarkColor     = SystemColors.ControlDark;
     _buttonDownLitColor      = SystemColors.ControlDark;
     _buttonUpDarkColor       = SystemColors.Control;
     _butttonUpLitColor       = SystemColors.Control;
     _highlightTimer          = new Timer();
     _highlightTimer.Interval = 100;
     _highlightTimer.Tick    += HighlightTimerTick;
 }
Пример #2
0
 /// <summary>
 /// Creates a new instance of DashControl
 /// </summary>
 public DashControl()
 {
     _blockSize.Width = 10F;
     _blockSize.Height = 10F;
     _horizontalSlider = new DashSliderHorizontal();
     _horizontalSlider.Size = new SizeF(_blockSize.Width, _blockSize.Height * 3 / 2);
     _verticalSlider = new DashSliderVertical();
     _verticalSlider.Size = new SizeF(_blockSize.Width * 3 / 2, _blockSize.Height);
     _buttonDownDarkColor = SystemColors.ControlDark;
     _buttonDownLitColor = SystemColors.ControlDark;
     _buttonUpDarkColor = SystemColors.Control;
     _butttonUpLitColor = SystemColors.Control;
     _highlightTimer = new Timer();
     _highlightTimer.Interval = 100;
     _highlightTimer.Tick += HighlightTimerTick;
 }