예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int fileid = 0;
            bool fileidspecified = (int.TryParse(this.Request.Params["file"], out fileid));

            if (fileidspecified)
            {
                this.file = ViewableFileCollection.GetFile(fileid);
            }
            else
            {
                throw new Exception("FCIF ID not specified");
            }

        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int fileid = 0;
            bool fileidspecified = (int.TryParse(this.Request.Params["file"], out fileid));

            if (fileidspecified)
            {
                this.file = ViewableFileCollection.GetFile(fileid);

                this.EditLink.NavigateUrl = string.Format("Editor.aspx?file={0}&form={1}", fileid, this.file.FormId);
                this.PreviousLink.Visible = false;
                this.NextLink.Visible = false;
            }
            else
            {
                throw new Exception("File ID not specified");
            }
        }
예제 #3
0
 private bool LoadFile()
 {
     this.File = ViewableFileCollection.GetFile(this.FileId);
     return this.File != null;
 }
예제 #4
0
 public ViewableField(Formfield formfield, ViewableFile viewableFile)
     : base(formfield)
 {
     this.viewableFile = viewableFile;
 }
예제 #5
0
 public ViewableField(Formfield formfield, ViewableFile viewableFile)
     : base(formfield)
 {
     this.viewableFile = viewableFile;
 }