コード例 #1
0
        public void ThisIsApart(int num)
        {
            var Apart = Living_Rooms.Where(x => x.Number == num);

            Apartament[] a = Apart.ToArray();
            IsApartament = a[0];
        }
コード例 #2
0
        public void ViewFreeRooms()
        {
            Free_Rooms.Clear();
            var frooms = Living_Rooms.Where(x => !x.use);

            foreach (var r in frooms)
            {
                Free_Rooms.Add(r);
            }
        }