//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"); }
//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"); }
//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 }
//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(); }
//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"); }
//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"); }