public AddAdress(OwnerDetails window, OwnerSet owner) { buildingPhotos = new List <BuildingPhoto>(); InitializeComponent(); _owner = owner; _window = window; }
public ShowAdressDetails(OwnerSet owner, AdressSet adress, OwnerDetails window) { _adress = adress; _owner = owner; _window = window; InitializeComponent(); }
private void ShowDetails(int id) { using (var context = new LocationPhotoManagerEntities()) { owner = context.OwnerSet.First(x => x.Id == id); owner.AdressSet.ToList().ForEach(x => Adresses.Add(x)); } icon = owner.Company ? "Photos/Icon/Company.png" : "Photos/Icon/Person.png"; }