示例#1
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     if (lstbxSearchResults.SelectedIndex < 0)
     {
     }
     else
     {
         temp.findFlights(lstbxSearchResults.SelectedIndex);
         BrowserForm frm = new BrowserForm();
         frm.URL = temp.FileName;
         frm.ShowDialog();
     }
 }
示例#2
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     if (lstbxSearchResults.SelectedIndex < 0)
     {
     }
     else
     {
         //send version to Reservation factory which will send to serialize to alter behaviour based on version
         temp.findFlights(lstbxSearchResults.SelectedIndex, version);
         BrowserForm frm = new BrowserForm();
         frm.URL = temp.FileName;
         frm.ShowDialog();
     }
 }
示例#3
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     if (version == "1.4")
     {
         FlightRequest chosen = temp.getRequest(lstbxSearchResults.SelectedIndex);
         temp2 = new MatchFlightsFactory(chosen);
         MatchingMultiCityFlights match = new MatchingMultiCityFlights(temp2.getMatches());
         match.Show();
     }
     else
     {
         //send version to Reservation factory which will send to serialize to alter behaviour based on version
         temp.findFlights(lstbxSearchResults.SelectedIndex, version);
         BrowserForm frm = new BrowserForm();
         frm.URL = temp.FileName;
         frm.ShowDialog();
     }
 }