C# Class RockWeb.Blocks.Utility.HtmlEditorFileBrowser

Inheritance: Rock.Web.UI.RockBlock
Exibir arquivo Open project: NewSpring/Rock

Protected Methods

Method Description
DeleteFile ( string relativeFilePath ) : void

Deletes the file.

DirectoryNode ( string directoryPath, string physicalRootFolder ) : string

Builds a Directory treenode.

ListFolderContents ( string relativeFolderPath ) : void

Lists the folder contents.

OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

getSelectedFileResult ( string relativeFilePath ) : string

Files the selected.

lbCreateFolder_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbCreateFolder control.

lbDeleteFolder_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbDeleteFolder control.

lbRefresh_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbRefresh control.

lbRenameFolder_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbRenameFolder control.

mdCreateFolder_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the mdCreateFolder control.

mdRenameFolder_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the mdRenameFolder control.

Private Methods

Method Description
BuildFolderTreeView ( ) : void

Initializes the tree views.

GetRootFolderPath ( ) : string

Gets the root folder path.

GetSelectedPhysicalFolder ( ) : string

Gets the selected physical folder.

IsValidFolderName ( string renameFolderName ) : bool

Determines whether [is valid folder name] [the specified rename folder name].

ShowErrorMessage ( Exception ex, string friendlyMessage ) : void

Shows the error message.

Method Details

DeleteFile() protected method

Deletes the file.
protected DeleteFile ( string relativeFilePath ) : void
relativeFilePath string The relative file path.
return void

DirectoryNode() protected method

Builds a Directory treenode.
protected DirectoryNode ( string directoryPath, string physicalRootFolder ) : string
directoryPath string The directory path.
physicalRootFolder string The physical root folder.
return string

ListFolderContents() protected method

Lists the folder contents.
protected ListFolderContents ( string relativeFolderPath ) : void
relativeFolderPath string The folder path.
return void

OnInit() protected method

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

OnLoad() protected method

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
return void

getSelectedFileResult() protected method

Files the selected.
protected getSelectedFileResult ( string relativeFilePath ) : string
relativeFilePath string The relative file path.
return string

lbCreateFolder_Click() protected method

Handles the Click event of the lbCreateFolder control.
protected lbCreateFolder_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lbDeleteFolder_Click() protected method

Handles the Click event of the lbDeleteFolder control.
protected lbDeleteFolder_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lbRefresh_Click() protected method

Handles the Click event of the lbRefresh control.
protected lbRefresh_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lbRenameFolder_Click() protected method

Handles the Click event of the lbRenameFolder control.
protected lbRenameFolder_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

mdCreateFolder_SaveClick() protected method

Handles the SaveClick event of the mdCreateFolder control.
protected mdCreateFolder_SaveClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

mdRenameFolder_SaveClick() protected method

Handles the SaveClick event of the mdRenameFolder control.
protected mdRenameFolder_SaveClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void