0:   //  FolderDialog.cs
1:   //  Copyright (C) 2001 Shankara Narayanan 
2:   //  This program is free software; you can redistribute it and/or modify
3:   //  it under the terms of the GNU General Public License as published by
4:   //  the Free Software Foundation; either version 2 of the License, or
5:   //  (at your option) any later version.
6:   // 
7:   //  This program is distributed in the hope that it will be useful,
8:   //  but WITHOUT ANY WARRANTY; without even the implied warranty of
9:   //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10:   //  GNU General Public License for more details.
11:   //
12:   //  You should have received a copy of the GNU General Public License
13:   //  along with this program; if not, write to the Free Software
14:   //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15:  
16:   using System.Windows.Forms.Design;
17:   using System.Windows.Forms;
18:  
19:   namespace SharpDevelop.Gui.Dialogs {
20:  
21:       // Changes Shankar
22:       /// <summary>
23:       /// This class helps to display the directory structure in the folder
24:       /// As the FolderBrowser is inaccessible we have to inherit from the
25:       /// FileNameBroswer and then call the method
26:       /// </summary>
27:       
28:       public class FolderDialog : FolderNameEditor
29:       {
30:           FolderNameEditor.FolderBrowser fDialog new System.Windows.Forms.Design.FolderNameEditor.FolderBrowser();
31:           public FolderDialog()
32:           {
33:           }
34:           public DialogResult DisplayDialog()
35:           {
36:               return DisplayDialog("Select the directory in which the project will be created.");
37:           }
38:           
39:           public DialogResult DisplayDialog(string description)
40:           {
41:               fDialog.Description description;
42:               return fDialog.ShowDialog();
43:           }
44:           public string Path {
45:               get {
46:                   return fDialog.DirectoryPath;
47:               }
48:           }
49:           
50:           ~FolderDialog()
51:           {
52:               fDialog.Dispose();
53:           }
54:       }
55:       // End
56:   }

This page was automatically generated by SharpDevelop.