private FileSystemBrowserDialog CreateDialog(IFile root) { var fs = new FileSystemBrowserDialog( Property.VariableType == VariableType.Sound ? root.GetChild("sound") : root ); switch (Property.VariableType) { case VariableType.Studio: fs.Filter = "*.mdl"; fs.FilterText = "Models (*.mdl)"; break; case VariableType.Sprite: fs.Filter = "*.spr"; fs.FilterText = "Sprites (*.spr)"; break; case VariableType.Sound: fs.Filter = "*.wav,*.mp3"; fs.FilterText = "Audio (*.wav, *.mp3)"; break; } return(fs); }
private FileSystemBrowserDialog CreateDialog() { var fs = new FileSystemBrowserDialog(Document.Environment.Root); switch (Property.VariableType) { case VariableType.Studio: fs.Filter = "*.mdl"; fs.FilterText = "Models (*.mdl)"; break; case VariableType.Sprite: fs.Filter = "*.spr"; fs.FilterText = "Sprites (*.spr)"; break; case VariableType.Sound: fs.Filter = "*.wav,*.mp3"; fs.FilterText = "Audio (*.wav, *.mp3)"; break; } return(fs); }