示例#1
0
 private void t_Tick(object sender, EventArgs e)
 {
     this.LblMonthYear.Text = DateTime.Now.ToString("MMMM yyyy,\ndddd");
     this.LblDate.Text      = DateTime.Now.ToString("dd");
     this.LblHour.Text      = Management.GetHour();
     this.LblMinute.Text    = Management.GetMinute();
     this.BarSec1.Width     = (this.Width / 2) * DateTime.Now.Second / 60;
     this.BarSec2.Width     = (this.Width / 2) * DateTime.Now.Second / 60;
     this.BarSec2.Left      = this.Width - BarSec2.Width;
 }