2014年1月24日

WPF 使用定时器

摘要: WPF 使用定时器:后台:private void button1_Click(object sender, RoutedEventArgs e) { Window_Loaded2(); } private void Window_Loaded2() { DispatcherTimer _mainTimer = new DispatcherTimer(); _mainTimer.Interval = TimeSpan.FromSeconds(1); _mainTimer.Tick += new EventHandler(_mainTimer_Tick); _mainTimer.IsEnab.. 阅读全文

posted @ 2014-01-24 12:07 打补订的僧服 阅读(1701) 评论(3) 推荐(0) 编辑

WPF 控件DataGrid绑定

摘要: WPF 手动绑定 DataGrid 例子:前台: 后台:private void button1_Click(object sender, RoutedEventArgs e) { string sql = "server=.;database=db_Tome1;uid=sa;pwd=123456";//连接字符串 SqlConnection sqlcon = new SqlConnection(sql);// textBox1.Text = "AAAA"; string date = datePicker1.Text; string sqlstr = 阅读全文

posted @ 2014-01-24 11:46 打补订的僧服 阅读(1218) 评论(3) 推荐(1) 编辑

导航