Пример #1
0
        private void FrmAlarm_Load(object sender, EventArgs e)
        {
            windowsMediaPlayer = new WindowsMediaPlayer();

            LblAlarm.ForeColor = Color.Gray;

            LblDate.Text = LblTime.Text = "";

            DtpAlarmTime.Format       = DateTimePickerFormat.Custom;
            DtpAlarmTime.CustomFormat = "hh:mm:ss";
            DtpAlarmTime.ShowUpDown   = true;

            Mytimer.Interval = 1000;//1초
            Mytimer.Tick    += Mytimer_Tick;
            Mytimer.Start();

            TabClock.SelectedTab = TapDigitalClock;
        }
Пример #2
0
        private void MainView_Load(object sender, EventArgs e)
        {
            Timer2_Load();

            //cpvolttbx.Text = "0";
            //cpfrtbx.Text = "0";
            //cpdutytbx.Text = "0";
            //cpcutbx.Text = "0";

            //axvolttbx.Text = "0";
            //axcutbx.Text = "0";
            //bxvolttbx.Text = "0";
            //bxcutbx.Text = "0";
            //cxvolttbx.Text = "0";
            //cxcutbx.Text = "0";
            //powertbx.Text = "0";
            //energytbx.Text = "0";

            //ccstatustbx.Text = "空闲状态";
            Mytimer.Start();
        }
Пример #3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Mytimer.Start();
 }