示例#1
0
 private void mnu_Mode4_Click(object sender, EventArgs e)
 {
     if (mnu_AnalogClock.Checked)
     {
         ClockTools.ClockStart(4);
     }
     analogClockMod = 4;
 }
示例#2
0
 private void frm_Main_Paint(object sender, PaintEventArgs e)
 {
     pnl_AnalogClock.Location = new Point((int)((this.ClientRectangle.Width - pnl_AnalogClock.Width) / 2), 24);
     ClockTools.ClockStart(pnl_AnalogClock, Color.Black, Color.White, 12,
                           Color.Red, 4,
                           Color.Blue, 9,
                           Color.DarkBlue, 14,
                           250, analogClockMod, analogFirstTime);
 }
示例#3
0
        //Εvent του Timer

        private void tmr_Clock_Tick(object sender, EventArgs e)
        {
            if (showAnalog)
            {
                lbl_CurrentTime.Visible = false;
                pnl_AnalogClock.Visible = true;
            }
            else
            {
                lbl_CurrentTime.Visible = true;
                pnl_AnalogClock.Visible = false;
            }

            //Ανανέωνε το Label με την τρέχουσα Ώρα
            lbl_CurrentTime.Text = DateTime.Now.ToShortDateString() + "\n" + DateTime.Now.ToLongTimeString();
            ClockTools.ClockStart(pnl_AnalogClock, Color.Black, Color.White, 12,
                                  Color.Red, 4,
                                  Color.Blue, 9,
                                  Color.DarkBlue, 14,
                                  250, analogClockMod, analogFirstTime);
            analogFirstTime = false;
            CheckForAlarm();
            CheckForNewAlarm();
        }