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