Doesn't make sense to have the up directory button visible when the top level directory is being displayed. Just add something like the following to SharedFiles.ascx.cs:
bool IsSubLevel = this.CurrentFolderID > 0 ? true : false;
btnGoUp.Visible = IsSubLevel;
-Jesse