예제 #1
0
        private void btnCreateFlights_Click(object sender, EventArgs e)
        {
            FlightFactory test = new FlightFactory();

            test.CreateFlights();
            List <Flight> t = test.GetFlights();

            foreach (Flight i in t)
            {
                string flight = i.ToString();
                listBox1.Items.Add(flight);
            }
        }
예제 #2
0
 public void Setup()
 {
     _target = new FlightFactory();
 }
예제 #3
0
 private void CreateFilesForm_Load(object sender, EventArgs e)
 {
     flightFactory = new FlightFactory();
 }