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]));
 }
 /// <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);
 }
Exemple #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();
        }
 /// <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);
 }
 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]));
 }
 /// <remarks/>
 public void FindFlightsAsync(RequirementClass requirements, string DepartureCity, string DepartureState, string ArrivalCity, string ArrivalState)
 {
     this.FindFlightsAsync(requirements, DepartureCity, DepartureState, ArrivalCity, ArrivalState, null);
 }