Пример #1
0
 private void Init()
 {
     UserDao dao = new UserDao();
     dgv_1.DataSource = dao.SelectAll();
     dataGridView1.DataSource = dao.getCarInfo();
     dataGridView2.DataSource = dao.getSanYCarInfo();
     act_color();
 }
Пример #2
0
 public void fresh()
 {
     UserDao dao = new UserDao();
     dgv_1.DataSource = dao.SelectAll();
     dataGridView1.DataSource = dao.getCarInfo();
     dataGridView2.DataSource = dao.getSanYCarInfo();
     act_color();
 }
Пример #3
0
 private void 刷新ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     UserDao dao=new UserDao();
     dgv_1.DataSource = dao.SelectAll();
     dataGridView1.DataSource=dao.getCarInfo();
     dataGridView2.DataSource = dao.getSanYCarInfo();
     act_color();
 }