C# Class ADDemo.main

Show file Open project: bolenc/Active-Directory-Examples

Private Properties

Property Type Description
ADField_SelectedIndexChanged void
Error_Message void
InitializeComponent void
Many_User_Search void
Set_Status void
Single_User_Search void
Write void
addGroup_Click void
deleteButton_Click void
main_Load void
newButton_Click void
queryString_Enter void
removeGroup_Click void
save_Click void
search_Click void
set_Control_Enable void
toSucceeded string
update_Display void
userBindings_NewCurrent void
userPassword1_TextChanged void
userPassword2_TextChanged void

Public Methods

Method Description
main ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ADField_SelectedIndexChanged ( object sender, EventArgs e ) : void
Error_Message ( string message ) : void

Pop up an error box

InitializeComponent ( ) : void

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

Many_User_Search ( string value, string field = "displayName" ) : void

Implements a multi-object search

Set_Status ( string status ) : void

Handles writing to the status bar

Single_User_Search ( string userID ) : void

Implements a single user search by SAMAccountID. No longer used, but left for an example

Write ( string message ) : void

Write a message to the diagnostic window

addGroup_Click ( object sender, EventArgs e ) : void

Process clicks to the addGroup button

deleteButton_Click ( object sender, EventArgs e ) : void

Handle 'delete' button clicks

main_Load ( object sender, EventArgs e ) : void
newButton_Click ( object sender, EventArgs e ) : void

Handle clicks of the 'new' button

queryString_Enter ( object sender, EventArgs e ) : void

Handles when the queryString box is entered.

removeGroup_Click ( object sender, EventArgs e ) : void

Handle clicks to the removeGroup button

save_Click ( object sender, EventArgs e ) : void

Process clicks of the save button

search_Click ( object sender, EventArgs e ) : void

Process clicks of the search button

set_Control_Enable ( Boolean enabled ) : void

Initialize controls

toSucceeded ( Boolean result ) : string

Converts boolean values to 'succeeded' or 'failed'

update_Display ( ) : void

Update user data fields, disabling if bindings are empty

userBindings_NewCurrent ( object sender, EventArgs e ) : void

Handles when the 'current' item of the userbinding set changes

userPassword1_TextChanged ( object sender, EventArgs e ) : void

Handle when the userPassword1 box is changed

userPassword2_TextChanged ( object sender, EventArgs e ) : void

Handle when the userPassword2 box is changed

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

main() public method

public main ( ) : System
return System