Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // 创建挑战工厂
            factory = new ChallengeCaseFactory();
            // 获取挑战列表
            List <IChallengeCase> list = factory.getChallengeCaseList(sortOrder);

            // 绑定数据源
            challengecase.DataSource = list;
            challengecase.DataBind();
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // get challenge case factory
            factory = new ChallengeCaseFactory();
            // get challenge case list
            List <IChallengeCase> list = factory.getChallengeCaseList(sortOrder);

            // bind data source
            challengecase.DataSource = list;
            challengecase.DataBind();
        }