Пример #1
0
        protected void GetData()
        {
            Collection <Rezervace>  rezervacee  = RezervaceTable.select();
            BindingList <Rezervace> bindingList = new BindingList <Rezervace>(rezervacee);

            RezGrid.DataSource = bindingList;
        }
Пример #2
0
 public bool OpenRecord(object primaryKey)
 {
     if (primaryKey != null)
     {
         int idRez = (int)primaryKey;
         rezervace = RezervaceTable.select(idRez);
         newRecord = false;
     }
     else
     {
         rezervace = new Rezervace();
         rezervace.datumStrelby = new DateTime(2000, 01, 01);
         newRecord = true;
     }
     BindData();
     return(true);
 }