internal CalibrationWindow(int width, int height, GraphicsManager gm) : base(0, 0, width, height) { this.gm = gm; Background = new SolidColorBrush(Color.CornflowerBlue); CrosshairPen = new Pen(Color.Red, 1); }
public ProgressBar(int x, int y, int width, int height, Orientation orientation = Orientation.Horizontal) : base(x, y, width, height) { Orientation = orientation; Background = new SolidColorBrush(Color.DarkGray); Foreground = new SolidColorBrush(Color.White); Border = new Pen(Color.Gray, 1); Value = 0; }
public Level(int x, int y, int width, int height, Orientation orientation, int barCount) : base(x, y, width, height) { Orientation = orientation; BarCount = barCount; Background = new SolidColorBrush(Color.DarkGray); Foreground = new SolidColorBrush(Color.White); Value = 0; }
internal Desktop(int width, int height, GraphicsManager gm) : base(0, 0, width, height) { this.gm = gm; Name = "Desktop"; Background = new SolidColorBrush(Color.Black); font = Resources.GetFont(Resources.FontResources.CourierNew_10); }
public void Show() { if (Background == null) Background = new SolidColorBrush(Color.CornflowerBlue); if (CrosshairPen == null) CrosshairPen = new Pen(Color.Red, 1); idx = 0; CalibrationManager.PrepareCalibrationPoints(); CalibrationManager.StartCalibration(); gm.Desktop.Children.Add(this); block = new ManualResetEvent(false); block.WaitOne(); }
protected override void OnRender(DrawingContext dc) { int centerX = Width / 2; int centerY = Height / 2; int radiusX = centerX; int radiusY = centerY; int ratio = 2; if (isChecked) { if (backgroundChecked != null) dc.DrawRectangle(backgroundChecked, border, 0, 0, Width, Height); else { dc.DrawEllipse(backgroundUnchecked, border, centerX, centerY, radiusX, radiusY); SolidColorBrush b = new SolidColorBrush(Color.LimeGreen); dc.DrawEllipse(b, border, centerX, centerY, radiusX / ratio, radiusY / ratio); } } else { dc.DrawEllipse(backgroundUnchecked, border, centerX, centerY, radiusX, radiusY); } }
private void InitUI() { Background = new SolidColorBrush(Color.Black); Children.Add(InitStatusBar()); SetHub(HubHome); }
public Window(int x, int y, int width, int height) : base(x, y, width, height) { Background = new SolidColorBrush(Color.LightGray); block = new ManualResetEvent(false); }