コード例 #1
0
 partial void DeleteAchievement(Achievement instance);
コード例 #2
0
 partial void InsertAchievement(Achievement instance);
コード例 #3
0
 partial void UpdateAchievement(Achievement instance);
コード例 #4
0
        protected void repAchievements_ItemBound(object sender, RepeaterItemEventArgs args)
        {
            var item = args.Item;
            if (item != null)
            {
                if (item.ItemType == ListItemType.AlternatingItem || item.ItemType == ListItemType.Item)
                {
                    AchievementsWithPlayers awp = (AchievementsWithPlayers)item.DataItem;
                    if (awp.Players != null && awp.Players.Count > 0)
                    {
                        currentAchievement = awp.Achievement;
                        PlaceHolder phNoResult = (PlaceHolder)item.FindControl("phNoResults");
                        if (phNoResult != null)
                        {
                            phNoResult.Visible = false;
                        }

                        Repeater repPlayers = (Repeater)item.FindControl("repPlayers");
                        if (repPlayers != null)
                        {
                            repPlayers.DataSource = awp.Players;
                            repPlayers.DataBind();
                        }
                    }
                    else
                    {
                        PlaceHolder phPlayers = (PlaceHolder)item.FindControl("phPlayers");
                        if (phPlayers != null)
                        {
                            phPlayers.Visible = false;
                        }
                    }
                }
            }
        }