Ejemplo n.º 1
0
    void gridManage_OnGetDataSource(object sender, EventArgs e)
    {
        SyndicationService.TransitAccountFeedQueryOptions options = GetQueryOptions();

        SyndicationService.ServiceQueryOptions serviceoptions = new SyndicationService.ServiceQueryOptions();
        serviceoptions.PageSize   = gridManage.PageSize;
        serviceoptions.PageNumber = gridManage.CurrentPageIndex;
        gridManage.DataSource     = SessionManager.GetCollection <SyndicationService.TransitAccountFeed, SyndicationService.ServiceQueryOptions, SyndicationService.TransitAccountFeedQueryOptions>(
            options, serviceoptions, SessionManager.SyndicationService.GetAccountFeeds);
    }
Ejemplo n.º 2
0
    private void GetData(object sender, EventArgs e)
    {
        SyndicationService.TransitAccountFeedQueryOptions options = GetQueryOptions();

        gridManage.CurrentPageIndex = 0;
        gridManage.VirtualItemCount = SessionManager.GetCount <SyndicationService.TransitAccountFeed, SyndicationService.ServiceQueryOptions, SyndicationService.TransitAccountFeedQueryOptions>(
            options, SessionManager.SyndicationService.GetAccountFeedsCount);
        gridManage_OnGetDataSource(sender, e);
        gridManage.DataBind();
    }
Ejemplo n.º 3
0
 private SyndicationService.TransitAccountFeedQueryOptions GetQueryOptions()
 {
     SyndicationService.TransitAccountFeedQueryOptions options = new SyndicationService.TransitAccountFeedQueryOptions();
     options.PicturesOnly      = false;
     options.PublishedOnly     = true;
     options.WithFeedItemsOnly = true;
     options.City          = inputCity.Text;
     options.Country       = inputCountry.SelectedValue;
     options.State         = inputState.SelectedValue;
     options.SortAscending = true;
     options.SortOrder     = "Name";
     return(options);
 }
Ejemplo n.º 4
0
 private SyndicationService.TransitAccountFeedQueryOptions GetQueryOptions()
 {
     SyndicationService.TransitAccountFeedQueryOptions options = new SyndicationService.TransitAccountFeedQueryOptions();
     options.PicturesOnly = false;
     options.PublishedOnly = true;
     options.WithFeedItemsOnly = true;
     options.City = inputCity.Text;
     options.Country = inputCountry.SelectedValue;
     options.State = inputState.SelectedValue;
     options.SortAscending = true;
     options.SortOrder = "Name";
     return options;
 }
Ejemplo n.º 5
0
    private void GetData(object sender, EventArgs e)
    {
        SyndicationService.TransitAccountFeedItemQueryOptions options = GetQueryOptions();

        gridManage.CurrentPageIndex = 0;

        gridManage.VirtualItemCount = SessionManager.GetCount <
            SyndicationService.TransitAccountFeedItem, SyndicationService.ServiceQueryOptions, SyndicationService.TransitAccountFeedItemQueryOptions>(
            options, SessionManager.SyndicationService.GetAllAccountFeedItemsCount);

        SyndicationService.TransitAccountFeedQueryOptions feed_options = new SyndicationService.TransitAccountFeedQueryOptions();
        feed_options.PublishedOnly     = true;
        feed_options.PicturesOnly      = false;
        feed_options.City              = options.City;
        feed_options.State             = options.State;
        feed_options.Country           = options.Country;
        feed_options.WithFeedItemsOnly = true;

        gridManage_OnGetDataSource(this, null);
        gridManage.DataBind();
    }
Ejemplo n.º 6
0
    private void GetData(object sender, EventArgs e)
    {
        SyndicationService.TransitAccountFeedItemQueryOptions options = GetQueryOptions();

        gridManage.CurrentPageIndex = 0;

        gridManage.VirtualItemCount = SessionManager.GetCount<
            SyndicationService.TransitAccountFeedItem, SyndicationService.ServiceQueryOptions, SyndicationService.TransitAccountFeedItemQueryOptions>(
                options, SessionManager.SyndicationService.GetAllAccountFeedItemsCount);

        SyndicationService.TransitAccountFeedQueryOptions feed_options = new SyndicationService.TransitAccountFeedQueryOptions();
        feed_options.PublishedOnly = true;
        feed_options.PicturesOnly = false;
        feed_options.City = options.City;
        feed_options.State = options.State;
        feed_options.Country = options.Country;
        feed_options.WithFeedItemsOnly = true;

        gridManage_OnGetDataSource(this, null);
        gridManage.DataBind();
    }
Ejemplo n.º 7
0
    private void GetData()
    {
        gridManage.CurrentPageIndex = 0;
        gridManage.VirtualItemCount = SessionManager.GetCount <
            SyndicationService.TransitAccountFeedItemImg,
            SyndicationService.ServiceQueryOptions,
            SyndicationService.TransitAccountFeedItemImgQueryOptions>(
            QueryOptions, SessionManager.SyndicationService.GetAccountFeedItemImgsCount);
        gridManage_OnGetDataSource(this, null);
        gridManage.DataBind();

        SyndicationService.TransitAccountFeedQueryOptions options = new SyndicationService.TransitAccountFeedQueryOptions();
        options.PublishedOnly = false;
        options.PicturesOnly  = false;
        int feedsCount = SessionManager.GetCount <
            SyndicationService.TransitAccountFeed,
            SyndicationService.ServiceQueryOptions,
            SyndicationService.TransitAccountFeedQueryOptions>(
            options, SessionManager.SyndicationService.GetAccountFeedsCount);

        labelCount.Text = string.Format("{0} picture{1} from <a href='AccountFeedsView.aspx'>{2} blog{3}</a>",
                                        gridManage.VirtualItemCount, gridManage.VirtualItemCount == 1 ? string.Empty : "s",
                                        feedsCount, feedsCount == 1 ? string.Empty : "s");
    }
Ejemplo n.º 8
0
    private void GetData()
    {
        gridManage.CurrentPageIndex = 0;
        gridManage.VirtualItemCount = SessionManager.GetCount<
            SyndicationService.TransitAccountFeedItemImg,
            SyndicationService.ServiceQueryOptions,
            SyndicationService.TransitAccountFeedItemImgQueryOptions>(
            QueryOptions, SessionManager.SyndicationService.GetAccountFeedItemImgsCount);
        gridManage_OnGetDataSource(this, null);
        gridManage.DataBind();

        SyndicationService.TransitAccountFeedQueryOptions options = new SyndicationService.TransitAccountFeedQueryOptions();
        options.PublishedOnly = false;
        options.PicturesOnly = false;
        int feedsCount = SessionManager.GetCount<
            SyndicationService.TransitAccountFeed,
            SyndicationService.ServiceQueryOptions,
            SyndicationService.TransitAccountFeedQueryOptions>(
            options, SessionManager.SyndicationService.GetAccountFeedsCount);

        labelCount.Text = string.Format("{0} picture{1} from <a href='AccountFeedsView.aspx'>{2} blog{3}</a>",
            gridManage.VirtualItemCount, gridManage.VirtualItemCount == 1 ? string.Empty : "s",
            feedsCount, feedsCount == 1 ? string.Empty : "s");
    }