C# Class FlatRedBall.Gui.FileWindow

Inheritance: Window
显示文件 Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
activityToExecute string

Public Methods

Method Description
ClearEvents ( ) : void
IsGraphicalFileWindow ( ) : bool
IsSpecialFolder ( string path ) : bool
SetCredentials ( string userName, string password ) : void
SetDirectory ( ) : void
SetDirectory ( string directoryToSet ) : void
SetFileType ( List FileType ) : void
SetFileType ( string FileType ) : void

Sets the filetype that the FileWindow can view.

This method also clears all types. Setting a filter then calling SetFileType clears the filter. Setting the filetype as "graphic" sets all of the file types that FRB can load. FlatRedBall.Gui.FileWindow.Filter

SetLastDirectory ( string fileType, string directory ) : void
SetToLoad ( ) : void
SetToSave ( ) : void
ShowLoadDirButton ( ) : void

Private Methods

Method Description
AddDirectoryClick ( Window callingWindow ) : void
AddDirectoryOk ( Window callingWindow ) : void
AddFileToRecent ( Window callingWindow ) : void
AddFileType ( string type ) : void
AskToReplace ( FileWindow windowToUse ) : void
BookmarkButtonClick ( Window callingWindow ) : void
CallOkClick ( ) : void
ChangeSelectedDirectory ( Window callingWindow ) : void
CloseFileWindow ( Window callingWindow ) : void
FileWindow ( Cursor cursor ) : System

Creates a new FileWindow.

By default, the save name TextBox is invisible making this a text box for loading. Call SetToSave to make the box appear.

FillListDisplayFromDirectory ( string directoryToSet ) : void
LoadBookmarks ( ) : void
LoadDirClick ( Window callingWindow ) : void
OkButtonClick ( Window callingWindow ) : void
OnAllRelativeClick ( Window callingWindow ) : void
OnCancelClick ( Window callingWindow ) : void
OnClose ( Window callingWindow ) : void
OnFileHierarchyClick ( Window callingWindow ) : void
OnFileTypeChange ( Window callingWindow ) : void

If the user selects an item in the mFileTypesBox

OnFileWindowClose ( Window callingWindow ) : void
OnListBoxClick ( Window callingWindow ) : void
OnListBoxStrongSelect ( Window callingWindow ) : void
OnSaveNameEnter ( Window callingWindow ) : void
OnShowRecent ( Window callingWindow ) : void
PopulateWithRecentFiles ( ) : void
ResetCurrentDirectoryComboBox ( ) : void
SaveBookmarks ( ) : void
SetDirectoryAllRelative ( string directoryToSet ) : void
SetDirectoryToComputerRoot ( string directoryToSet ) : void
SetDirectoryToFtp ( string directoryToSet ) : void
SetDirectoryToLocalDirectory ( string directoryToSet ) : void
SetFtpAfterUsernamePassword ( Window callingWindow ) : void
SetGUIPosition ( Window callingWindow ) : void
ShowChildTextureDisplayWindow ( Window callingWindow ) : void
TryToHandleFtpException ( string directoryToSet ) : void
UpOneDirectoryClick ( Window callingWindow ) : void
UpdateBookmarkButtonToCurrentDirectory ( ) : void
UpdateFileTypeComboBoxToStringList ( ) : void

Method Details

ClearEvents() public method

public ClearEvents ( ) : void
return void

IsGraphicalFileWindow() public method

public IsGraphicalFileWindow ( ) : bool
return bool

IsSpecialFolder() public method

public IsSpecialFolder ( string path ) : bool
path string
return bool

SetCredentials() public method

public SetCredentials ( string userName, string password ) : void
userName string
password string
return void

SetDirectory() public method

public SetDirectory ( ) : void
return void

SetDirectory() public method

public SetDirectory ( string directoryToSet ) : void
directoryToSet string
return void

SetFileType() public method

public SetFileType ( List FileType ) : void
FileType List
return void

SetFileType() public method

Sets the filetype that the FileWindow can view.
This method also clears all types. Setting a filter then calling SetFileType clears the filter. Setting the filetype as "graphic" sets all of the file types that FRB can load. FlatRedBall.Gui.FileWindow.Filter
public SetFileType ( string FileType ) : void
FileType string The file types specified by extension.
return void

SetLastDirectory() public static method

public static SetLastDirectory ( string fileType, string directory ) : void
fileType string
directory string
return void

SetToLoad() public method

public SetToLoad ( ) : void
return void

SetToSave() public method

public SetToSave ( ) : void
return void

ShowLoadDirButton() public method

public ShowLoadDirButton ( ) : void
return void

Property Details

activityToExecute public_oe property

public string activityToExecute
return string