Server.ServerDisplay Class
A GUI for the election server manager. This is what the election official interacts with. When it has to do some work, the GUI calls a Server method. As part of its processing, the server then calls some mixture of the appropriate routines to display the results of the operation. The particular display implementation does the work it needs to maintain state between calls by the server itself.

Access: Public
Base Classes: Form
  Members Description  
    listBox1    
    label1    
    button_Open    
    button_Close    
    button_View    
    button_Exit    
    server    
    vector    
    votes    
    title    
    winner    
    nVotes    
    components    
    ServerDisplay Constructor

 
    start Initiliazes the GUI

 
    Dispose Clean up any resources being used.

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

 
    button_Open_Click Open Election Button listener

 
    button_Close_Click Close Election Button listener

 
    button_View_Click View Election Results Button listener

 
    button_Exit_Click Exit Application Button listener

 
    resultsWindow Instantiates a new window with election results

 
    putTitle Puts the title for the election to be displayed

 
    putWinner Puts the winner for the election to be displayed

 
    putCandidate Puts the candidate in the vector to be displayed

 
    putElection Puts the election to be displayed

 
    error Displays error messages

 
    notify Displays a message to the user

 
    openElection Opens the election