public void ThisIsApart(int num) { var Apart = Living_Rooms.Where(x => x.Number == num); Apartament[] a = Apart.ToArray(); IsApartament = a[0]; }
public void ViewFreeRooms() { Free_Rooms.Clear(); var frooms = Living_Rooms.Where(x => !x.use); foreach (var r in frooms) { Free_Rooms.Add(r); } }