C# Class Smrf.AppLib.FolderPathControl

Control for getting the path to an existing folder.
Set the FolderPath property after the control is created. To retrieve the folder path , call Validate, and if returns true, read the FolderPath property.
Inheritance: System.Windows.Forms.UserControl
Show file Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
m_bAllowEmptyFolderPath System.Boolean
m_sBrowsePrompt String
m_sFolderPath String

Public Methods

Method Description
FolderPathControl ( ) : System

Initializes a new instance of the FolderPathControl class.

Validate ( ) : System.Boolean

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

DoDataExchange ( System.Boolean bFromControls ) : System.Boolean

Private Methods

Method Description
AssertValid ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

btnBrowse_Click ( object sender, System e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

DoDataExchange() protected method

protected DoDataExchange ( System.Boolean bFromControls ) : System.Boolean
bFromControls System.Boolean
return System.Boolean

FolderPathControl() public method

Initializes a new instance of the FolderPathControl class.
public FolderPathControl ( ) : System
return System

Validate() public method

public Validate ( ) : System.Boolean
return System.Boolean

Property Details

m_bAllowEmptyFolderPath protected property

protected Boolean,System m_bAllowEmptyFolderPath
return System.Boolean

m_sBrowsePrompt protected property

protected String m_sBrowsePrompt
return String

m_sFolderPath protected property

protected String m_sFolderPath
return String