Methods.Form1 Class
This is the dialog form for exercising the various math operations. This code was originally written for integer operands. By creating an alias type called operandType and setting it to System.Single, the code was updated for float. This operandType can be set back to System.Int32 for integer operations.

Access: Public
Base Classes: Form
  Members Description  
    label1 gui

 
    lhsOperand gui

 
    groupBox1 gui

 
    label2 gui

 
    rhsOperand gui

 
    calculate gui

 
    label3 gui

 
    expression gui

 
    label4 gui

 
    result gui

 
    quit gui

 
    addition gui

 
    subtraction gui

 
    multiplication gui

 
    division gui

 
    remainder gui

 
    sqrtlhs gui

 
    components gui

Required designer variable.

 
    Form1 default constructor of form

 
    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.

 
    Main The main entry point for the application.

 
    calculate_Click Start calculation when "Click" button is activated. Calls doCalculation

 
    doCalculation Perform actual calculation. Called by calculate_Click

 
    addValues Perform + binary operation

 
    subtractValues Perform - binary operation

 
    multiplyValues Perform * binary operation

 
    divideValues Perform / binary operation

 
    remainderValues Perform % binary operation

 
    sqrtLhsValue Perform sqrt on operand

 
    quit_Click Quit application

 
    Form1_Load Load the form

 
Remarks:
The gui objects are documented as "gui" so that the Comment Web Page will show better which members are objects, and which members are functions. Deeper detail on each "gui" is not documented because it results in constant updating whenever the gui form changes.