private void btnCreateFlights_Click(object sender, EventArgs e) { //testing flightFactory.CreateFlightData(); bool result = flightFactory.Serialize(filepath); lblStatus.Text = result.ToString(); }
/// <summary> /// btnCreateFlights click event handler. Uses a FlightFactory object to creates flights, /// and then create a flights.xml using the flights created. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnCreateFlights_Click(object sender, EventArgs e) { temp.CreateFlights(); temp.Serialize(); }