Пример #1
0
        /// ************************************************************************************************
        /// <summary>
        ///
        /// </summary>
        public MainWindow4()
        {
            DataContext            = this;
            BorderColor            = Properties.Settings.Default.BorderColor;
            ClockBackgroundColor   = Properties.Settings.Default.ClockBackgroundColor;
            ClockForegroundColor   = Properties.Settings.Default.ClockForegroundColor;
            CaptionForegroundColor = Properties.Settings.Default.CaptionForegroundColor;
            CaptionBackgroundColor = Properties.Settings.Default.CaptionBackgroundColor;

            InitializeComponent();
            MainCommon.SetupTables(new System.Windows.Controls.Label[] { Text1, Text2, Text3, Text4 }, new MVGTimeTable.MVGTimeTable[] { Table1, Table2, Table3, Table4 });
            MainCommon.SetupTimeLabel(LabelTime);
            // Clock Refresh Timer
            DispatcherTimer timerClock = new DispatcherTimer
            {
                Interval = TimeSpan.FromSeconds(1)
            };

            timerClock.Tick += TimerClock_Tick;
            timerClock.Start();
        }
Пример #2
0
 /// ************************************************************************************************
 /// <summary>
 /// Clock Timer Event Handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void TimerClock_Tick(object sender, EventArgs e)
 {
     MainCommon.UpdateClockLabel(LabelTime);
 }