예제 #1
0
        private void BindRepeater()
        {
            var resultToShow = Wiki.GetFiles();

            UpdateHasFilesToDelete(resultToShow);

            HasFiles = resultToShow.Count > 0;

            if (HasFiles)
            {
                rptFilesList.DataSource = resultToShow;
                rptFilesList.DataBind();
            }
            else
            {
                var emptyScreenControl = new EmptyScreenControl
                {
                    ImgSrc   = WebImageSupplier.GetAbsoluteWebPath("wikilogo150.png", WikiManager.ModuleId),
                    Header   = WikiResource.EmptyScreenWikiFilesCaption,
                    Describe = WikiResource.EmptyScreenWikiFilesText,
                };

                if (CanUpload)
                {
                    emptyScreenControl.ButtonHTML = String.Format("<a class='link underline blue plus' href='javascript:ShowUploadFileBox();'>{0}</a>", WikiResource.menu_AddNewFile);
                }

                EmptyContent.Controls.Add(emptyScreenControl);
            }
        }
예제 #2
0
        private void BindRepeater()
        {
            List <File> resultToShow = Wiki.GetFiles();

            UpdateHasFilesToDelete(resultToShow);
            rptFilesList.DataSource = resultToShow;
            rptFilesList.DataBind();
        }
예제 #3
0
 private void BindListFiles()
 {
     rptListFiles.DataSource = Wiki.GetFiles();
     rptListFiles.DataBind();
 }