Exemplo n.º 1
0
        private void OpenWrapper(int i)
        {
            #region OPENING WRAPPER
            aPost = (Post)ArrayPosts[i];

            ArrayMembers = bl.GetMemberDisplayName(aPost.MemberId);
            countMembers = ArrayMembers.Count;

            for (int a = 0; a < countMembers; ++a)
            {
                aMember = (Member)ArrayMembers[a];

                NotificationDAL notificationDAL = new NotificationDAL();
                Group           group           = new Group(aPost.GroupId);

                string groupDescription = notificationDAL.GetGroupDescription2(group);

                concatinater.Append("<div class='aPost typeOfText' id='");
                concatinater.Append(aPost.PostId);
                concatinater.Append("'><div class='msgeHeading ui-corner-all' ><h2 class='ui-corner-all'> Posted by: <a href='#' id='");
                concatinater.Append(aPost.MemberId);
                concatinater.Append("' class='btnMemberProfile' style='font-weight:normal; '>");
                concatinater.Append(aMember.DisplayName);

                bool isForMember = false;

                string date = "";



                date = reusable_Methods.FormatDateTime(aPost.CreateDate);

                if (aPost.MemberId == memberID)
                {
                    isForMember = true;
                }

                if (GroupID == aPost.GroupId)
                {
                }
                else
                {
                    concatinater.Append("</a> <span class='space'></span> in group: <a id='");
                    concatinater.Append(aPost.GroupId);

                    concatinater.Append("' class='btnGoToGroupPage groupDesc'>");
                    concatinater.Append(groupDescription);
                }

                concatinater.Append("</a>");
                if (isForMember)
                {
                    concatinater.Append("<span class='ui-icon ui-icon-closethick floatright deletePost pointer ' title ='Delete this post' style='display:none;'></span>");
                }

                concatinater.Append("<span class='DateWithTime ui-corner-all floatright'>");
                concatinater.Append(date);
                //concatinater.Append(Convert.ToDateTime(aPost.CreateDate).ToString("D"));
                concatinater.Append("</span></h2></div> <div class='postContentArea'> <div> ");
            }

            #endregion
        }
Exemplo n.º 2
0
        private void OpenWrapper(int i)
        {
            #region OPENING WRAPPER
            aPost = (Post)ArrayPosts[i];

            ArrayMembers = bl.GetMemberDisplayName(aPost.MemberId);
            countMembers = ArrayMembers.Count;

            for (int a = 0; a < countMembers; ++a)
            {
                aMember = (Member)ArrayMembers[a];

                NotificationDAL notificationDAL = new NotificationDAL();
                Group group = new Group(aPost.GroupId);

                string groupDescription = notificationDAL.GetGroupDescription2(group);

                concatinater.Append("<div class='aPost typeOfText' id='");
                concatinater.Append(aPost.PostId);
                concatinater.Append("'><div class='msgeHeading ui-corner-all' ><h2 class='ui-corner-all'> Posted by: <a href='#' id='");
                concatinater.Append(aPost.MemberId);
                concatinater.Append("' class='btnMemberProfile' style='font-weight:normal; '>");
                concatinater.Append(aMember.DisplayName);

                bool isForMember = false;

                string date = "";

                date = reusable_Methods.FormatDateTime(aPost.CreateDate);

                if (aPost.MemberId == memberID)
                { isForMember = true; }

                if (GroupID == aPost.GroupId)
                {

                }
                else
                {
                    concatinater.Append("</a> <span class='space'></span> in group: <a id='");
                    concatinater.Append(aPost.GroupId);

                    concatinater.Append("' class='btnGoToGroupPage groupDesc'>");
                    concatinater.Append(groupDescription);

                }

                concatinater.Append("</a>");
                if (isForMember)
                {
                    concatinater.Append("<span class='ui-icon ui-icon-closethick floatright deletePost pointer ' title ='Delete this post' style='display:none;'></span>");
                }

                concatinater.Append("<span class='DateWithTime ui-corner-all floatright'>");
                concatinater.Append(date);
                //concatinater.Append(Convert.ToDateTime(aPost.CreateDate).ToString("D"));
                concatinater.Append("</span></h2></div> <div class='postContentArea'> <div> ");

            }

            #endregion
        }