定時器實現

private void OnTimerCallback(Object obj)
{
po_SvrTime = po_SvrTime.AddSeconds(1);

this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal,

(System.Threading.ThreadStart)delegate()
{
//你的定时处理
labSvcTime.Content = po_SvrTime.ToString("HH:mm:ss");
//label1.Content = po_SvrTime.ToString("HH");
//textBox1.Text = po_SvrTime.ToString("mm");
});
}

上一篇:GithubSearch


下一篇:oracle expdp 按条件导出