public static void AddPassengers(byte count = 1, GenerationPlace place = null, Guid flight = default(Guid)) { if (count < 1 || count > 25) { throw new IncorrectArgumentsException("Count must from 1 to 25"); } if (place == null) { place = GenerationPlace.FromCode("Unknown"); } Request("/passengers", new { count = count, place = place.Code, flight = flight }); }
private void Form1_Load(object sender, EventArgs e) { UpdateList(); comboBoxPlaceOfGeneration.Items.AddRange(GenerationPlace.GetPlacesAvailableForGeneration().ToArray()); }