コード例 #1
0
        private void FormOdalar_Load(object sender, EventArgs e)
        {
            db = new PansiyonDBEntities();
            bindingSourceOdalar.DataSource = db.Odalar.ToList();
            this.Renklendir();

            //dataGridView.Columns.Add("Column", "Test");     //this.dataGridView1.Columns.Add(ColumnName, HeaderText);
        }
コード例 #2
0
 private void FormMusteri_Load(object sender, EventArgs e)
 {
     db = new PansiyonDBEntities();
     musterilerBindingSource.DataSource = db.Musteriler.ToList();
 }