Пример #1
0
        private void updateCommentsTableView()
        {
            db = new DataClasses2DataContext();
            //dataGridView1.DataSource = db.posts;
            dataGridView2.DataSource = db.comments;
            //dataGridView3.DataSource = db.users;

            //dataGridView1.Refresh();
            dataGridView2.Refresh();
            //dataGridView3.Refresh();
        }
Пример #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            db = new DataClasses2DataContext();
            //dataGridView1.DataSource = db.posts;
            //dataGridView2.DataSource = db.comments;
            dataGridView3.DataSource = db.users;

            //dataGridView1.Refresh();
            //dataGridView2.Refresh();
            dataGridView3.Refresh();
        }
Пример #3
0
 public Form1()
 {
     InitializeComponent();
     db = new DataClasses2DataContext();
 }