Client.UserForm Class Reference

Used for both creating and editing user information. More...

List of all members.

Public Member Functions

 UserForm ()
 A new empty form used for creating a new user.
 UserForm (PersonInfo personinfo)
 A new form with information about an existing user.

Public Attributes

string user
 Variables containing the username of a newly created user.
string password
 Variables containing the password of a newly created user.

Protected Member Functions

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

Properties

PersonInfo PersonInfo [get, set]
 The PersonInfo created from the user data, when creating a new user.

Private Member Functions

void button2_Click (object sender, EventArgs e)
 Cancel button clicked.
void button1_Click (object sender, EventArgs e)
 Accept Button clicked.
void textBoxPassword_Enter (object sender, EventArgs e)
void textBoxConfirm_Enter (object sender, EventArgs e)
void textBoxConfirm_MouseClick (object sender, MouseEventArgs e)
void textBoxPassword_MouseClick (object sender, MouseEventArgs e)
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor.

Private Attributes

PersonInfo personinfo
 The information for the contained or created user.
bool editUser = false
 Defines wether the form is editing an existing user, or creating a new one.
System.ComponentModel.IContainer components = null
 Required designer variable.
System.Windows.Forms.TextBox textBoxName
System.Windows.Forms.Label label1
System.Windows.Forms.Label label2
System.Windows.Forms.TextBox textBoxEmail
System.Windows.Forms.Label label4
System.Windows.Forms.Label label6
System.Windows.Forms.Label label7
System.Windows.Forms.Button button1
System.Windows.Forms.Button button2
System.Windows.Forms.Label label10
System.Windows.Forms.Label label11
System.Windows.Forms.TextBox textBoxDepartment
System.Windows.Forms.Label label8
System.Windows.Forms.Label label12
System.Windows.Forms.TextBox textBoxUsername
System.Windows.Forms.TextBox textBoxConfirm
System.Windows.Forms.TextBox textBoxPassword
System.Windows.Forms.Label label3
System.Windows.Forms.GroupBox groupBox1
System.Windows.Forms.GroupBox groupBox2
System.Windows.Forms.Label label5


Detailed Description

Used for both creating and editing user information.

Definition at line 15 of file CreateNewUser.cs.


Constructor & Destructor Documentation

Client.UserForm.UserForm (  ) 

A new empty form used for creating a new user.

Definition at line 29 of file CreateNewUser.cs.

References Client.UserForm.InitializeComponent().

Here is the call graph for this function:

Client.UserForm.UserForm ( PersonInfo  personinfo  ) 

A new form with information about an existing user.

Parameters:
personinfo A PersonInfo struct with the information to be displayed.

Definition at line 38 of file CreateNewUser.cs.

References Client.UserForm.button1, Shared.PersonInfo.department, Client.UserForm.editUser, Shared.PersonInfo.email, Client.UserForm.InitializeComponent(), Client.UserForm.label12, Client.UserForm.label5, Client.UserForm.label8, Shared.PersonInfo.name, Client.UserForm.personinfo, Client.UserForm.textBoxDepartment, Client.UserForm.textBoxEmail, Client.UserForm.textBoxName, Client.UserForm.textBoxUsername, and Shared.PersonInfo.username.

Here is the call graph for this function:


Member Function Documentation

void Client.UserForm.button2_Click ( object  sender,
EventArgs  e 
) [private]

Cancel button clicked.

Parameters:
sender 
e 

Definition at line 63 of file CreateNewUser.cs.

References Client.UserForm.PersonInfo, and Client.UserForm.personinfo.

Referenced by Client.UserForm.InitializeComponent().

Here is the caller graph for this function:

void Client.UserForm.button1_Click ( object  sender,
EventArgs  e 
) [private]

Accept Button clicked.

Parameters:
sender button1
e 

Definition at line 74 of file CreateNewUser.cs.

References Shared.PersonInfo.department, Client.UserForm.editUser, Shared.PersonInfo.email, Shared.PersonInfo.name, Client.UserForm.password, Shared.PersonInfo.password, Client.UserForm.personinfo, Client.UserForm.textBoxConfirm, Client.UserForm.textBoxDepartment, Client.UserForm.textBoxEmail, Client.UserForm.textBoxName, Client.UserForm.textBoxPassword, Client.UserForm.textBoxUsername, Client.UserForm.user, and Shared.PersonInfo.username.

Referenced by Client.UserForm.InitializeComponent().

Here is the caller graph for this function:

override void Client.UserForm.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 CreateNewUser.Designer.cs.

References Client.UserForm.components.

void Client.UserForm.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 CreateNewUser.Designer.cs.

References Client.UserForm.button1, Client.UserForm.button1_Click(), Client.UserForm.button2, Client.UserForm.button2_Click(), Client.UserForm.groupBox1, Client.UserForm.groupBox2, Client.UserForm.label1, Client.UserForm.label10, Client.UserForm.label11, Client.UserForm.label12, Client.UserForm.label2, Client.UserForm.label3, Client.UserForm.label4, Client.UserForm.label5, Client.UserForm.label6, Client.UserForm.label7, Client.UserForm.label8, Client.UserForm.textBoxConfirm, Client.UserForm.textBoxConfirm_Enter(), Client.UserForm.textBoxConfirm_MouseClick(), Client.UserForm.textBoxDepartment, Client.UserForm.textBoxEmail, Client.UserForm.textBoxName, Client.UserForm.textBoxPassword, Client.UserForm.textBoxPassword_Enter(), Client.UserForm.textBoxPassword_MouseClick(), and Client.UserForm.textBoxUsername.

Referenced by Client.UserForm.UserForm().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

PersonInfo Client.UserForm.personinfo [private]

The information for the contained or created user.

Definition at line 18 of file CreateNewUser.cs.

Referenced by Client.UserForm.button1_Click(), Client.UserForm.button2_Click(), and Client.UserForm.UserForm().

bool Client.UserForm.editUser = false [private]

Defines wether the form is editing an existing user, or creating a new one.

Definition at line 20 of file CreateNewUser.cs.

Referenced by Client.UserForm.button1_Click(), and Client.UserForm.UserForm().

string Client.UserForm.user

Variables containing the username of a newly created user.

Definition at line 22 of file CreateNewUser.cs.

Referenced by Client.UserForm.button1_Click().

string Client.UserForm.password

Variables containing the password of a newly created user.

Definition at line 24 of file CreateNewUser.cs.

Referenced by Client.UserForm.button1_Click().

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

Required designer variable.

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

Referenced by Client.UserForm.Dispose().


Property Documentation

PersonInfo Client.UserForm.PersonInfo [get, set]

The PersonInfo created from the user data, when creating a new user.

Definition at line 129 of file CreateNewUser.cs.

Referenced by Client.UserForm.button2_Click(), Client.Login.cmdCreateUser_LinkClicked(), and Client.MainWindow.profileToolStripMenuItem_Click().


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