摘要: 1 DispatcherTimer = new DispatcherTimer(); 2 Timer.Tick += Timer_Tick; 3 Timer.Interval = TimeSpan.FromSeconds(1); 4 Timer.Start(); 5 6 7 private void Timer_Tick(object sender, EventArgs e) ... 阅读全文
posted @ 2018-03-09 14:46 liu_xh 阅读(2470) 评论(0) 推荐(0)
摘要: 1 //获取今天是星期几 2 string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; 3 string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToSt... 阅读全文
posted @ 2018-03-09 14:22 liu_xh 阅读(5805) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 6 7 8 9 10 11 阅读全文
posted @ 2018-03-09 10:08 liu_xh 阅读(408) 评论(0) 推荐(0)