コード例 #1
0
ファイル: ManageMember.ascx.cs プロジェクト: ngocpq/MHX2
        public void repMembersToApprove_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
            {
                ProfileDisplay p          = e.Item.FindControl("Profile1") as ProfileDisplay;
                CheckBox       chkProfile = e.Item.FindControl("chkProfile") as CheckBox;

                p.LoadDisplay(((Account)e.Item.DataItem));
                chkProfile.Attributes.Add("AccountID", ((Account)e.Item.DataItem).AccountID.ToString());
            }
        }
コード例 #2
0
 private void Awake()
 {
     Instance = this;
 }