コード例 #1
0
 public MainWindow()
 {
     InitializeComponent();
     wekker                      = new Wekker();
     timer1                      = new DispatcherTimer();
     timer1.Interval             = TimeSpan.FromMilliseconds(1000);
     timer1.Tick                += timer1_Tick;
     currentTimeLabel.Background = new SolidColorBrush(Colors.LightGray);
     alarmTimeTextBox.Text       = "__:__:__";
     timer1.Start();
 }
コード例 #2
0
 public MainWindow()
 {
     InitializeComponent();
     wekker = new Wekker();
     timer1 = new DispatcherTimer();
     timer1.Interval = TimeSpan.FromMilliseconds(1000);
     timer1.Tick += timer1_Tick;
     currentTimeLabel.Background = new SolidColorBrush(Colors.LightGray);
     alarmTimeTextBox.Text = "__:__:__";
     timer1.Start();
 }