Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void CorrectHouses(Butai[] Butas, Butai[] Tinkami, int StartStage,
- int EndStage, int WantedRooms, double WantedPrice, ref int CorrectOnes)
- {
- int AllHouses = 27;
- for (int i=0; i < AllHouses; i++)
- {
- if (((Butas[0].Numbers[i].RoomNumber + 2) / 3 >= StartStage)&&((Butas[0].Numbers[i].RoomNumber + 2) / 3 <= EndStage)&&
- (Butas[0].Numbers[i].Rooms==WantedRooms)&&(Butas[0].Numbers[i].Price<=WantedPrice))
- {
- Info tinkami = new Info(Butas[0].Numbers[i].RoomNumber, Butas[0].Numbers[i].RoomArea, Butas[0].Numbers[i].Rooms,
- Butas[0].Numbers[i].Price, Butas[0].Numbers[i].PhoneNumber);
- Tinkami[CorrectOnes].AddCorrect(tinkami, CorrectOnes);
- CorrectOnes++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement