public System.Data.DataSet GetRoomsByAmenities(Amenities amenitities, string city, string state) { object[] results = this.Invoke("GetRoomsByAmenities", new object[] { amenitities, city, state }); return((System.Data.DataSet)(results[0])); }
protected void btnHotelSearch_Click(object sender, EventArgs e) { HotelServiceRef.Amenities reqs = new HotelServiceRef.Amenities(); reqs.FreeBreakfast = Convert.ToInt32(ddlBreakfast.SelectedValue); reqs.Gym = Convert.ToInt32(ddlGym.SelectedValue); reqs.PoolsideBar = Convert.ToInt32(ddlPoolBar.SelectedValue); reqs.Smoking = Convert.ToInt32(ddlSmoking.SelectedValue); reqs.ValetParking = Convert.ToInt32(ddlValet.SelectedValue); reqs.Wifi = Convert.ToInt32(ddlWifi.SelectedValue); }
/// <remarks/> public void GetRoomsByAmenitiesAsync(Amenities amenitities, string city, string state, object userState) { if ((this.GetRoomsByAmenitiesOperationCompleted == null)) { this.GetRoomsByAmenitiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRoomsByAmenitiesOperationCompleted); } this.InvokeAsync("GetRoomsByAmenities", new object[] { amenitities, city, state }, this.GetRoomsByAmenitiesOperationCompleted, userState); }
protected void btnHotelAmenitiesSearch_Click(object sender, EventArgs e) { HotelServiceRef.HotelService pxy = new HotelServiceRef.HotelService(); HotelServiceRef.Amenities amenities = new HotelServiceRef.Amenities(); amenities.FreeBreakfast = Convert.ToInt32(ddlBreakfast.SelectedValue); amenities.Gym = Convert.ToInt32(ddlGym.SelectedValue); amenities.PoolsideBar = Convert.ToInt32(ddlPoolBar.SelectedValue); amenities.Smoking = Convert.ToInt32(ddlSmoking.SelectedValue); amenities.ValetParking = Convert.ToInt32(ddlValet.SelectedValue); amenities.Wifi = Convert.ToInt32(ddlWifi.SelectedValue); DataSet myDS = pxy.GetRoomsByAmenities(amenities, txtHotelCity.Text, ddlHotelState.SelectedItem.Text); rptHotelResults.DataSource = myDS; rptHotelResults.DataBind(); divHotelResults.Visible = true; }
/// <remarks/> public void GetRoomsByAmenitiesAsync(Amenities amenitities, string city, string state, object userState) { if ((this.GetRoomsByAmenitiesOperationCompleted == null)) { this.GetRoomsByAmenitiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRoomsByAmenitiesOperationCompleted); } this.InvokeAsync("GetRoomsByAmenities", new object[] { amenitities, city, state}, this.GetRoomsByAmenitiesOperationCompleted, userState); }
/// <remarks/> public void GetRoomsByAmenitiesAsync(Amenities amenitities, string city, string state) { this.GetRoomsByAmenitiesAsync(amenitities, city, state, null); }
public System.Data.DataSet GetRoomsByAmenities(Amenities amenitities, string city, string state) { object[] results = this.Invoke("GetRoomsByAmenities", new object[] { amenitities, city, state}); return ((System.Data.DataSet)(results[0])); }
/// <remarks/> public void GetRoomsByAmenitiesAsync(Amenities amenitities, string city, string state) { this.GetRoomsByAmenitiesAsync(amenitities, city, state, null); }