Example #1
0
 //Purpose: To cet the first set of information for the square
 //Requires: The submit button to be clicked
 //Returns: nothing
 public void ProcessSquare()
 {
     pointC.Refresh();
     Instruction2.Refresh();
     Instruction2.Text = String.Format("Enter the X and Y coordinates for the first point \n"
                                       + " and any other value for a second point:");
     pointC.Text = String.Format("X2");
 }
Example #2
0
 //Purpose: To cet the first set of information for the square
 //Requires: The submit button to be clicked
 //Returns: nothing
 public void ProcessRectangle()
 {
     extraCoord.Visible = true;
     pointC.Refresh();
     Instruction2.Refresh();
     Instruction2.Text = String.Format("Enter the X and Y coordinates for the first point \n"
                                       + " and any other value for a second point:");
     pointC.Text = String.Format("X2");
 }
Example #3
0
 //Purpose: To cet the first set of information for the circle
 //Requires: The submit button to be clicked
 //Returns: nothing
 public void ProcessCircle()
 {
     // get the next set of information from the user
     pointC.Refresh();
     Instruction2.Refresh();
     Instruction2.Text = String.Format("Enter the starting coordinates and the radius");
     pointC.Text       = String.Format("radius");
     // wait on the user clicks enter call the methods to do the
     // calculations on the circle
 }
Example #4
0
 //Purpose: To hide control functions that are not needed
 //Requires: none
 //Returns: none
 public void HideFirstInformation()
 {
     Instruction1.Visible = false;
     submit1.Visible      = false;
     inputBox.Visible     = false;
     // extraCoord.Visible = true;
     Instruction2.Visible = true;
     data.Visible         = true;
     Enter.Visible        = true;
     pointC.Refresh();
     Instruction2.Refresh();
 }
Example #5
0
 //Purpose: To cet the first set of information for the cylinder
 //Requires: The submit button to be clicked
 //Returns: nothing
 public void ProcessCylinder()
 {
     // get the next set of information from the user
     extraCoord.Visible = true;
     pointC.Refresh();
     pointD.Refresh();
     Instruction2.Refresh();
     Instruction2.Text = String.Format("Enter the starting coordinates" +
                                       "the radius and the height.");
     pointC.Text = String.Format("radius");
     pointD.Text = String.Format("height");
 }
Example #6
0
 //Purpose: To cet the first set of information for the cuboid
 //Requires: The submit button to be clicked
 //Returns: nothing
 public void ProcessCuboid()
 {
     // get the next set of information from the user
     extraCoord.Visible = true;
     pointC.Refresh();
     pointD.Refresh();
     Instruction2.Refresh();
     Instruction2.Text = String.Format("Enter two different x " +
                                       "coordinates, the width and the height.");
     pointB.Refresh();
     pointB.Text = String.Format("X2");
     pointC.Text = String.Format("width");
     pointD.Text = String.Format("height");
 }