Beispiel #1
0
        private static string GetInfoStr(GenericInfoUC.PublishedObj publishedObj, long gid, string groupName)
        {
            string format = "";
            string str;

            if (gid == 0L)
            {
                switch (publishedObj)
                {
                case GenericInfoUC.PublishedObj.WallPost:
                    format = CommonResources.ThePostIsPublishedOnWallFrm;
                    break;

                case GenericInfoUC.PublishedObj.Photo:
                    format = CommonResources.ThePhotoIsPublishedOnWallFrm;
                    break;

                case GenericInfoUC.PublishedObj.Video:
                    format = CommonResources.TheVideoIsPublishedOnWallFrm;
                    break;

                case GenericInfoUC.PublishedObj.Doc:
                    format = CommonResources.TheDocumentIsPublishedOnWallFrm;
                    break;
                }
                str = string.Format(format, ("[id" + AppGlobalStateManager.Current.LoggedInUserId + "|" + CommonResources.Yours + "]"));
            }
            else
            {
                switch (publishedObj)
                {
                case GenericInfoUC.PublishedObj.WallPost:
                    format = CommonResources.ThePostIsPublishedInCommunityFrm;
                    break;

                case GenericInfoUC.PublishedObj.Photo:
                    format = CommonResources.ThePhotoIsPublishedInCommunityFrm;
                    break;

                case GenericInfoUC.PublishedObj.Video:
                    format = CommonResources.TheVideoIsPublishedInCommunityFrm;
                    break;

                case GenericInfoUC.PublishedObj.Doc:
                    format = CommonResources.TheDocumentIsPublishedInCommunityFrm;
                    break;
                }
                str = string.Format(format, ("[club" + gid + "|" + groupName + "]"));
            }
            return(str);
        }
Beispiel #2
0
 public static void ShowPublishResult(GenericInfoUC.PublishedObj publishedObj, long gid = 0, string groupName = "")
 {
     new GenericInfoUC(3000).ShowAndHideLater(GenericInfoUC.GetInfoStr(publishedObj, gid, groupName), null);
 }