コード例 #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
ファイル: FCIFView.aspx.cs プロジェクト: manjot83/tfs2.com
        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");
            }
        }
コード例 #3
0
 private bool LoadFile()
 {
     this.File = ViewableFileCollection.GetFile(this.FileId);
     return(this.File != null);
 }