示例#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);
 }
示例#2
0
 void loadFromData()
 {
     _ListDogs = DogBUS.GetAll();
     SetDataSource(_ListDogs);
 }