private void AddClock()
 {
     Clock = new ClockComponent((panelSettings as DiagnosticGaugeSettings).useMilitaryTime)
     {
         Width         = recordStack.Width,
         Height        = recordStack.Height,
         TextAlignment = TextAlignment.Center,
     };
     recordStack.Children.Add(Clock);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public ClockView(ClockComponent component = null) : base(component)
 {
     InitializeComponent();
     Load();
 }
Esempio n. 4
0
 public abstract void Process(ref ClockComponent clock);