Engines/FlatRedBallXNA/FlatRedBall/Gui/FileTextBox.cs
/// <summary>
/// Sets the filetype that the FileWindow can view. 
/// </summary>
/// <remarks>
/// 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.
/// <seealso cref="FlatRedBall.Gui.FileWindow.Filter"/>
/// </remarks>
/// <param name="FileType">The file types specified by extension.  </param>
Sets the filetype that the FileWindow can view.
Sets the filetype that the FileWindow can view .
public void SetFileType(string fileType)
        {
            mFileTypes.Clear();
            if (fileType == "graphic")
            {
                AddFileType("bmp");
                AddFileType("png");
                AddFileType("jpg");
                AddFileType("tga");
                AddFileType("dds");
            }
            else if (fileType == "graphic and animation")
            {
                AddFileType("bmp");
                AddFileType("png");
                AddFileType("jpg");
                AddFileType("tga");
                AddFileType("dds");
                AddFileType("ach");
                AddFileType("achx");
            }
            else
                AddFileType(fileType);
        }
public void SetFileType ( string fileType ) { mFileTypes . Clear ( ) ; if ( fileType == " " ) { AddFileType ( " " ) ; AddFileType ( " " ) ; AddFileType ( " " ) ; AddFileType ( " " ) ; AddFileType ( " " ) ; } else if ( fileType == " " ) { AddFileType ( " " ) ; AddFileType ( " " ) ; AddFileType ( " " ) ; AddFileType ( " " ) ; AddFileType ( " " ) ; AddFileType ( " " ) ; AddFileType ( " " ) ; } else AddFileType ( fileType ) ; }
Sets the filetype that the FileWindow can view.
Sets the filetype that the FileWindow can view .
fileType
string
FileType
The file types specified by extension.
The file types specified by extension .
remarks
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.
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 .