Exemplo n.º 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");
            }
        }
Exemplo n.º 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("FCIF ID not specified");
            }
        }
Exemplo n.º 3
0
 private bool LoadFile()
 {
     this.File = ViewableFileCollection.GetFile(this.FileId);
     return(this.File != null);
 }