Пример #1
0
 public System.Data.DataSet FindFlights(RequirementClass requirements, string DepartureCity, string DepartureState, string ArrivalCity, string ArrivalState)
 {
     object[] results = this.Invoke("FindFlights", new object[] {
         requirements,
         DepartureCity,
         DepartureState,
         ArrivalCity,
         ArrivalState
     });
     return((System.Data.DataSet)(results[0]));
 }
Пример #2
0
 /// <remarks/>
 public void FindFlightsAsync(RequirementClass requirements, string DepartureCity, string DepartureState, string ArrivalCity, string ArrivalState, object userState)
 {
     if ((this.FindFlightsOperationCompleted == null))
     {
         this.FindFlightsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindFlightsOperationCompleted);
     }
     this.InvokeAsync("FindFlights", new object[] {
         requirements,
         DepartureCity,
         DepartureState,
         ArrivalCity,
         ArrivalState
     }, this.FindFlightsOperationCompleted, userState);
 }
Пример #3
0
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            //lblMessage.Text = "This button works";
            string departureCity  = txtDepartureCity.Text;
            string departureState = ddlDepartureState.SelectedItem.Text;
            string arrivalCity    = txtArrivalCity.Text;
            string arrivalState   = ddlArrivalState.SelectedItem.Text;

            Flights.RequirementClass reqflight = new Flights.RequirementClass();
            reqflight.requirementStops = ddlStops.SelectedValue;
            reqflight.requirementClass = ddlFlightOption.SelectedValue;
            DataSet myDS = new DataSet();

            myDS = proxy.FindFlights(reqflight, departureCity, departureState, arrivalCity, arrivalState);
            gvFlightResults.DataSource = myDS;
            gvFlightResults.DataBind();
        }
Пример #4
0
 /// <remarks/>
 public void FilterFlightsByCarrierAsync(AirCarrierClass AirCarrierID, RequirementClass requirements, string DepartureCity, string DepartureState, string ArrivalCity, string ArrivalState)
 {
     this.FilterFlightsByCarrierAsync(AirCarrierID, requirements, DepartureCity, DepartureState, ArrivalCity, ArrivalState, null);
 }
Пример #5
0
 public System.Data.DataSet FilterFlightsByCarrier(AirCarrierClass AirCarrierID, RequirementClass requirements, string DepartureCity, string DepartureState, string ArrivalCity, string ArrivalState)
 {
     object[] results = this.Invoke("FilterFlightsByCarrier", new object[] {
         AirCarrierID,
         requirements,
         DepartureCity,
         DepartureState,
         ArrivalCity,
         ArrivalState
     });
     return((System.Data.DataSet)(results[0]));
 }
Пример #6
0
 /// <remarks/>
 public void FindFlightsAsync(RequirementClass requirements, string DepartureCity, string DepartureState, string ArrivalCity, string ArrivalState)
 {
     this.FindFlightsAsync(requirements, DepartureCity, DepartureState, ArrivalCity, ArrivalState, null);
 }