Client.GetAUser Class Reference

Let the user select a single user from a list of users using only usernames (currently at least). More...

List of all members.

Public Member Functions

 GetAUser (ISearchable[] allUsers, RoleInfo[] Members)
 Constructor for the GetAUser form.

Public Attributes

List< string > selectedUsers
 The username of the selected user.
bool addSupervisor
 Does the user wish to add a supervisor?

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.

Private Member Functions

void FilterListbox (string filter)
 Filter the listbox according to a specific text.
void txtFilter_TextChanged (object sender, EventArgs e)
 Filter the text if a text is found in the field, otherwise simply show all items.
void txtFilter_Enter (object sender, EventArgs e)
 If the filter contains the Filter usernames... text, empty it when entering.
void txtFilter_Leave (object sender, EventArgs e)
 If the filter text field is empty, show the Filter usernames... text when exiting it.
void btnCancel_Click (object sender, EventArgs e)
 Cancel user selection - clear the selectedUser variable because we're not wanting to choose a user.
void btnOK_Click (object sender, EventArgs e)
 Add the user, and mark addSupervisor according to the checked state of the checkbox.
void lstUsers_SelectedIndexChanged (object sender, EventArgs e)
 Set the username in selectedUser according to the selected item.
void lstUsers_MouseDoubleClick (object sender, MouseEventArgs e)
 Closes the window if a user was selected in the list by double clicking.
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor.

Private Attributes

List< string > users = new List<string>()
 The users to choose between.
System.ComponentModel.IContainer components = null
 Required designer variable.
System.Windows.Forms.ListBox lstUsers
System.Windows.Forms.TextBox txtFilter
System.Windows.Forms.Panel panel1
System.Windows.Forms.Panel panel2
System.Windows.Forms.Button btnCancel
System.Windows.Forms.Button btnOK
System.Windows.Forms.CheckBox chkSupervisor


Detailed Description

Let the user select a single user from a list of users using only usernames (currently at least).

Definition at line 16 of file GetAUser.cs.


Constructor & Destructor Documentation

Client.GetAUser.GetAUser ( ISearchable[]  allUsers,
RoleInfo[]  Members 
)

Constructor for the GetAUser form.

Parameters:
allUsers The list of users to show in the list
Members Member list for the project, not used yet..

Definition at line 30 of file GetAUser.cs.

References Client.GetAUser.InitializeComponent(), Client.GetAUser.lstUsers, Client.GetAUser.selectedUsers, and Client.GetAUser.users.

Here is the call graph for this function:


Member Function Documentation

void Client.GetAUser.FilterListbox ( string  filter  )  [private]

Filter the listbox according to a specific text.

Parameters:
filter The text to filter against

Definition at line 45 of file GetAUser.cs.

References Client.GetAUser.lstUsers, and Client.GetAUser.users.

Referenced by Client.GetAUser.txtFilter_TextChanged().

Here is the caller graph for this function:

void Client.GetAUser.txtFilter_TextChanged ( object  sender,
EventArgs  e 
) [private]

Filter the text if a text is found in the field, otherwise simply show all items.

Parameters:
sender Who is calling?
e What arguments do they give us?

Definition at line 60 of file GetAUser.cs.

References Client.GetAUser.FilterListbox(), Client.GetAUser.lstUsers, Client.GetAUser.txtFilter, and Client.GetAUser.users.

Referenced by Client.GetAUser.InitializeComponent().

Here is the call graph for this function:

Here is the caller graph for this function:

void Client.GetAUser.txtFilter_Enter ( object  sender,
EventArgs  e 
) [private]

If the filter contains the Filter usernames... text, empty it when entering.

Parameters:
sender Who is calling?
e What arguments do they give us?

Definition at line 77 of file GetAUser.cs.

References Client.GetAUser.txtFilter.

Referenced by Client.GetAUser.InitializeComponent().

Here is the caller graph for this function:

void Client.GetAUser.txtFilter_Leave ( object  sender,
EventArgs  e 
) [private]

If the filter text field is empty, show the Filter usernames... text when exiting it.

Parameters:
sender Who is calling?
e What arguments do they give us?

Definition at line 88 of file GetAUser.cs.

References Client.GetAUser.txtFilter.

Referenced by Client.GetAUser.InitializeComponent().

Here is the caller graph for this function:

void Client.GetAUser.btnCancel_Click ( object  sender,
EventArgs  e 
) [private]

Cancel user selection - clear the selectedUser variable because we're not wanting to choose a user.

Parameters:
sender Who is calling?
e What arguments do they give us?

Definition at line 99 of file GetAUser.cs.

Referenced by Client.GetAUser.InitializeComponent().

Here is the caller graph for this function:

void Client.GetAUser.btnOK_Click ( object  sender,
EventArgs  e 
) [private]

Add the user, and mark addSupervisor according to the checked state of the checkbox.

Parameters:
sender Who is calling?
e What arguments do they give us?

Definition at line 110 of file GetAUser.cs.

References Client.GetAUser.addSupervisor, and Client.GetAUser.chkSupervisor.

Referenced by Client.GetAUser.InitializeComponent().

Here is the caller graph for this function:

void Client.GetAUser.lstUsers_SelectedIndexChanged ( object  sender,
EventArgs  e 
) [private]

Set the username in selectedUser according to the selected item.

Parameters:
sender Who is calling?
e What arguments do they give us?

Definition at line 121 of file GetAUser.cs.

References Client.GetAUser.lstUsers, and Client.GetAUser.selectedUsers.

Referenced by Client.GetAUser.InitializeComponent().

Here is the caller graph for this function:

void Client.GetAUser.lstUsers_MouseDoubleClick ( object  sender,
MouseEventArgs  e 
) [private]

Closes the window if a user was selected in the list by double clicking.

Parameters:
sender Who is calling?
e What arguments do they give us?

Definition at line 140 of file GetAUser.cs.

References Client.GetAUser.lstUsers, and Client.GetAUser.selectedUsers.

override void Client.GetAUser.Dispose ( bool  disposing  )  [protected]

Clean up any resources being used.

Parameters:
disposing true if managed resources should be disposed; otherwise, false.

Definition at line 14 of file GetAUser.Designer.cs.

References Client.GetAUser.components.

void Client.GetAUser.InitializeComponent (  )  [private]

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

Definition at line 29 of file GetAUser.Designer.cs.

References Client.GetAUser.btnCancel, Client.GetAUser.btnCancel_Click(), Client.GetAUser.btnOK, Client.GetAUser.btnOK_Click(), Client.GetAUser.chkSupervisor, Client.GetAUser.lstUsers, Client.GetAUser.lstUsers_SelectedIndexChanged(), Client.GetAUser.panel1, Client.GetAUser.panel2, Client.GetAUser.txtFilter, Client.GetAUser.txtFilter_Enter(), Client.GetAUser.txtFilter_Leave(), and Client.GetAUser.txtFilter_TextChanged().

Referenced by Client.GetAUser.GetAUser().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

List<string> Client.GetAUser.users = new List<string>() [private]

The users to choose between.

Definition at line 19 of file GetAUser.cs.

Referenced by Client.GetAUser.FilterListbox(), Client.GetAUser.GetAUser(), and Client.GetAUser.txtFilter_TextChanged().

List<string> Client.GetAUser.selectedUsers

The username of the selected user.

Definition at line 21 of file GetAUser.cs.

Referenced by Client.ProjectView.btnAddMember_Click(), Client.GetAUser.GetAUser(), Client.GetAUser.lstUsers_MouseDoubleClick(), and Client.GetAUser.lstUsers_SelectedIndexChanged().

bool Client.GetAUser.addSupervisor

Does the user wish to add a supervisor?

Definition at line 23 of file GetAUser.cs.

Referenced by Client.ProjectView.btnAddMember_Click(), and Client.GetAUser.btnOK_Click().

System.ComponentModel.IContainer Client.GetAUser.components = null [private]

Required designer variable.

Definition at line 8 of file GetAUser.Designer.cs.

Referenced by Client.GetAUser.Dispose().


The documentation for this class was generated from the following files:
Generated on Thu Dec 21 06:22:43 2006 for SCRAML by  doxygen 1.5.1-p1