void gridManage_OnGetDataSource(object sender, EventArgs e) { PlaceService.TransitPlaceQueryOptions options = GetQueryOptions(); PlaceService.ServiceQueryOptions serviceoptions = new PlaceService.ServiceQueryOptions(); serviceoptions.PageSize = gridManage.PageSize; serviceoptions.PageNumber = gridManage.CurrentPageIndex; gridManage.DataSource = SessionManager.GetCollection < PlaceService.TransitPlace, PlaceService.ServiceQueryOptions, PlaceService.TransitPlaceQueryOptions>( options, serviceoptions, SessionManager.PlaceService.GetPlaces); }
private PlaceService.TransitPlaceQueryOptions GetQueryOptions() { PlaceService.TransitPlaceQueryOptions options = new PlaceService.TransitPlaceQueryOptions(); options.PicturesOnly = checkboxPicturesOnly.Checked; options.Neighborhood = inputNeighborhood.Text; options.City = inputCity.Text; options.Country = inputCountry.SelectedValue; options.State = inputState.SelectedValue; options.Name = inputName.Text; options.Type = inputType.SelectedValue; options.PicturesOnly = true; return(options); }
private PlaceService.TransitPlaceQueryOptions GetQueryOptions() { PlaceService.TransitPlaceQueryOptions options = new PlaceService.TransitPlaceQueryOptions(); options.PicturesOnly = checkboxPicturesOnly.Checked; options.Neighborhood = inputNeighborhood.Text; options.City = inputCity.Text; options.Country = inputCountry.SelectedValue; options.State = inputState.SelectedValue; options.Name = inputName.Text; options.Type = inputType.SelectedValue; options.PicturesOnly = true; return options; }