Exemple #1
0
 void BindGrid()
 {
     lst = currentobj.GetAll();
     if (lst.Count != 0)
     {
         dataGridView1.DataSource = null;
         dataGridView1.DataSource = lst;
     }
 }
Exemple #2
0
 void BindControl()
 {
     lst = typeobj.GetAll();
     CMBType.DataSource    = lst;
     CMBType.DisplayMember = "UniteName";
     CMBType.ValueMember   = "ID";
     //
     Floorslst               = Floorsobj.GetAll();
     CMBFloors.DataSource    = Floorslst;
     CMBFloors.DisplayMember = "FloorName";
     CMBFloors.ValueMember   = "ID";
 }