Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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;
 }