C# Class CinderellaMGS.ManageGodmothers

显示文件 Open project: ThomasMoreCollege/CinderellaMGS Class Usage Examples

Public Methods

Method Description
ManageGodmothers ( ) : System
populateControls ( ) : void

Binds all of the forms list boxes to datasources and saves the currently selected value for each control before refreshing.

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.

ManageGodmothers_Load ( object sender, EventArgs e ) : void

Initial form load. Starts the time component and sets some form styles.

aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Displays the applications Global about box.

addFairyGodmotherToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Opens the add Godmother form.

cinderellaCurrentlyShoppingLB_Click ( object sender, EventArgs e ) : void

Method currently not being used.

cinderellaLB_Click ( object sender, EventArgs e ) : void

Keeps the selected index of the cinderella and godmother listboxes the same.

deleteFairyGodmotherToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Opens the delete Godmother form.

endShiftToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Ends the current shift.

exitToolStripMenuItem1_Click ( object sender, EventArgs e ) : void

Closes the form.

godmotherCheckinToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Displays the Godmother checkin form.

godmotherCurrentlyShoppingLB_Click ( object sender, EventArgs e ) : void

Method currently not being used.

godmotherLB_Click ( object sender, EventArgs e ) : void

Keeps the selected index of the cinderella and godmother listboxes the same.

makeActiveButton_Click ( object sender, EventArgs e ) : void

Retrieves the selected inactive godmother and makes them active.

makeInactiveButton_Click ( object sender, EventArgs e ) : void

Retrieves the selected active godmother and makes them inactive.

randomizeStartToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method should be run right before the first cinderellas and godmothers go shopping. All of the available Godmothers are randomly paired with all of the available cinderellas.

resetIndex ( ) : void

Resets the selected index for all of the list box controls.

shopButton_Click ( object sender, EventArgs e ) : void

Sets the status of the selected Godmother and Cinderella to shopping.

showAllGodmothersToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Calls the populate controls method.

timer_Tick ( object sender, EventArgs e ) : void

Timer component to insure the controls stay up to date.

waitingAreaToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Displays the waiting area form.

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

ManageGodmothers() public method

public ManageGodmothers ( ) : System
return System

populateControls() public method

Binds all of the forms list boxes to datasources and saves the currently selected value for each control before refreshing.
public populateControls ( ) : void
return void