Exemplo n.º 1
0
        public Clock()
        {
            this.rinneHour = DateTime.Now.Hour;
            this.rinneMin  = DateTime.Now.Minute;
            this.rinneSec  = DateTime.Now.Second;

            rinneTimer           = new Timer(1000);
            rinneTimer.Elapsed  += new ElapsedEventHandler(Updata);
            rinneTimer.AutoReset = true;
            rinneTimer.Enabled   = true;

            rinneClock  = new ClockControlArgs();
            ClockEvent += Alarm;
            ClockAwake  = false;
        }
Exemplo n.º 2
0
 private void Alarm(object sender, ClockControlArgs e)
 {
     Console.WriteLine("Alarm Now!!!");
     ShowTime();
 }