Ejemplo n.º 1
0
        public void LoadUI(File file)
        {
            fileID = file.FileID.ToString();
            string path1 = file.CreateDate.Year.ToString() + file.CreateDate.Month.ToString();
            lblFileName.Text = System.IO.Path.GetFileNameWithoutExtension(file.FileName);
            litImageName.Text = file.FileSystemName.ToString();
            litFileExtension.Text = file.Extension.ToString();
            lblDescription.Text = file.Description;
            Tags1.SystemObjectRecordID = Convert.ToInt64(file.FileID);
            Tags1.SystemObjectID = 5;
            comments.SystemObject = SystemObject.Names.Files;
            comments.SystemObjectRecordID = Convert.ToInt64(file.FileID);
            string pathToImage = "/files/photos/" + path1 + "/" + litImageName.Text;
            litFileID.Text = file.FileID.ToString();
            //linkImage.NavigateUrl = pathToImage + "__o." + litFileExtension.Text;
            linkImage.NavigateUrl = "~/photos/ViewView.aspx?FileID=" + _presenter.ImageNext(file.FileID);
            linkImage.ImageUrl = pathToImage + "__o." + litFileExtension.Text;
            linkNext.NavigateUrl = "~/photos/ViewView.aspx?FileID=" + _presenter.ImageNext(file.FileID);
            linkPrivious.NavigateUrl = "~/photos/ViewView.aspx?FileID=" + _presenter.ImagePrivious(file.FileID);
            lblCreated.Text = file.CreateDate.ToString("dd-MM-yyyy lúc HH:mm");

        }
Ejemplo n.º 2
0
 public string GetImageByID(Int64 ImageID, File.Sizes Size)
 {
     return _fileService.GetFullFilePathByFileID(ImageID, Size);
 }