Exemplo n.º 1
0
 void loadFromData()
 {
     _ListDogs = DogBUS.GetAll();
     try
     {
         foreach (var dog in _ListDogs)
         {
             var getProp  = dog.GetType().GetProperty("IMAGES");
             var newValue = Convert.ChangeType(UIProcess.Inst.LoadImage((byte[])getProp.GetValue(dog, null)), getProp.PropertyType);
             getProp.SetValue(dog, newValue, null);
         }
     }
     catch { }
     SetDataSource(_ListDogs);
 }
Exemplo n.º 2
0
 void loadFromData()
 {
     _ListDogs = DogBUS.GetAll();
     SetDataSource(_ListDogs);
 }