private void AddClock() { Clock = new ClockComponent((panelSettings as DiagnosticGaugeSettings).useMilitaryTime) { Width = recordStack.Width, Height = recordStack.Height, TextAlignment = TextAlignment.Center, }; recordStack.Children.Add(Clock); }
public override void GeneratePanel() { canvas.Children.Clear(); if (panelSettings.useGlobalColorPalette) { canvas.Background = new SolidColorBrush(ConfigManager.ColorPalettes.GetSelectedPalette().GaugeBackground); } else { canvas.Background = new SolidColorBrush(panelSettings.BackgroundColor); } clockComponent = new ClockComponent(panelSettings.useMilitaryTime, panelSettings.showAmPm, panelSettings.showDate) { Width = canvas.Width, Height = canvas.Height, TextAlignment = TextAlignment.Center, }; canvas.Children.Add(clockComponent); }
public ClockView(ClockComponent component = null) : base(component) { InitializeComponent(); Load(); }
public abstract void Process(ref ClockComponent clock);