コード例 #1
0
    protected void AvailableYears_YearChanged(object sender, EventArgs e)
    {
        IbaMasterPage.ExceptionHandler((IbaMasterPage)Master, () =>
        {
            this.State.SpeciesResultsTable = ResultsFacade.SiteBySpeciesPivotTable(speciesId, _chartValues,
                                                                                   int.Parse(this.State.SelectedYear));

            bindSpecies();
            getMapDataAndBind();
        });
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        addHandlers();
        GetSpeciesID();

        if (!Page.IsPostBack)
        {
            this.State.SpeciesResultsTable = ResultsFacade.SiteBySpeciesPivotTable(speciesId, _chartValues,
                                                                                   int.Parse(this.State.SelectedYear));

            bindSpecies();
            getMapDataAndBind();
        }

        bindSiteTable();
    }