HYDocumentMS.ViewFileFrm.ViewFileFrm_Load C# (CSharp) Method

ViewFileFrm_Load() private method

private ViewFileFrm_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void ViewFileFrm_Load(object sender, EventArgs e)
        {
            this.CenterToParent();
            this.Text = this.FrmText + this.FileName;
            if (this.ViewFilePath.Substring(this.ViewFilePath.Length - 1) != @"\")
            {
                if (this.ViewFilePath.Substring(this.ViewFilePath.Length - 1) != @"/")
                {
                    this.ViewFilePath = this.ViewFilePath + @"\";
                }
            }
            this.WBFileView.Navigate(this.ViewFilePath+this.FileName);
        }