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