C# Class CinderellaMGS.Administration

Inheritance: System.Windows.Forms.Form
Show file Open project: ThomasMoreCollege/CinderellaMGS Class Usage Examples

Public Methods

Method Description
Administration ( string username ) : System
CreateCSVFile ( DataTable dt, string strFilePath ) : void

Method is used by the exportPB method to construct the csv file.

loadPictures ( ) : void

Loads the pictures for the menu items.

parseCSV ( string path ) : List

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

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

exportPB_Click ( object sender, EventArgs e ) : void

Exports data to a csv file based on the query defined. This method works however there has not been a query defined for the export. The SQL Select Statement should be entered in the exportQuery variable on line 511.

importCPB_Click ( object sender, EventArgs e ) : void

Allows the user to specify a Cinderella data file to be imported.

importGPB_Click ( object sender, EventArgs e ) : void

Allows the user to specify a Godmother data file to be imported.

pictureBox6_Click ( object sender, EventArgs e ) : void

Closes the Adminsitration Menu Form.

queryPB_Click ( object sender, EventArgs e ) : void

Loads the sql query form.

reportsPB_Click ( object sender, EventArgs e ) : void

Displays a messagebox with the current system stats.

resetPB_Click ( object sender, EventArgs e ) : void

Resets the database to a default state as specified in the resetDB stored procedure.

settingsPB_Click ( object sender, EventArgs e ) : void

Loads the Godmode form.

usersPB_Click ( object sender, EventArgs e ) : void

Loads the User_Mngt form.

Method Details

Administration() public method

public Administration ( string username ) : System
username string
return System

CreateCSVFile() public method

Method is used by the exportPB method to construct the csv file.
public CreateCSVFile ( DataTable dt, string strFilePath ) : void
dt System.Data.DataTable Datatable containing the data to be exported.
strFilePath string Path for which the file should be saved.
return void

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

loadPictures() public method

Loads the pictures for the menu items.
public loadPictures ( ) : void
return void

parseCSV() public method

public parseCSV ( string path ) : List
path string
return List