Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Microsoft Visual C# 2015 So this is a form created in C# that is supposed to perform several methods that will allow the user to

image text in transcribed

Microsoft Visual C# 2015

So this is a form created in C# that is supposed to perform several methods that will allow the user to calculate some health statistics using callable methods. The first part of my question involves using a few methods that will 1) display the dashboard, 2) load the test data, and 3) load the form. Instructions for designing these methods are as follows:

Method 1) DisplayDashboard (bool makeVisible)

-Purpose: This method will be called any time we want to display or hide the panels. To call this method within another method, simply write DisplayDashboard(true) if you want to see the panels and DisplayDashboard(false) if you want to hide them.

-Write code that changes the Visible property for each panel (except the Profile) based on the Boolean argument that is coming in. e.g. panel1.Visible = makeVisible;

(panel names are currently coded as: pnlBMI, pnlHeartRate1, pnlHeartRate2, pnlBloodPressure, pnlGlucose, and pnlProfile)

Method 2) LoadTestData()

Purpose: This method will be called any time we want to display sample data.

Write code to fill the textboxes with the test data shown in the Design Screenshot below.

(text boxes currently coded as txtAge, txtFeet, txtInches, txtWeight, txtSys, txtDia, and txtGlucose)

Call DisplayDashboard(false) to hide all panels

Set the focus to the 1st textbox

Method 3) VitalsForm_Load()

On the Form's Load event, do the following:

-Call the LoadTestData() method to display the sample data

-Call DisplayDashboard(false) to hide all panels.

Design Screenshot:

image text in transcribed

tals Vitals Dashboard Profile Vitals Age Blood Pressure dia Sys Height (ft, in) X Clear Glucose: Weight: High Risk Rate Heart BMI 10-SECOND RULE Obese Your HEARTBEATS Max Exercise should be between Over Wt 00 and 00 Heart Rate Target Zone 30-39.9 Healthy 000 Do not exceed Under Wt 000 000 00 BPM 185-249 BPM BPM 000 heartbeats 50% 0-184 Blood Pressure Overall Hypertension Level Glucose Diabetes Normal Pre Stage 1 Stage 2 Pre Systolic Diabetes 126 000 Norma 100-125 120 140 160 Diastolic Low 000 000 N. G. Sanchez 2017 tals Vitals Dashboard Profile Vitals Age Blood Pressure dia Sys Height (ft, in) X Clear Glucose: Weight: High Risk Rate Heart BMI 10-SECOND RULE Obese Your HEARTBEATS Max Exercise should be between Over Wt 00 and 00 Heart Rate Target Zone 30-39.9 Healthy 000 Do not exceed Under Wt 000 000 00 BPM 185-249 BPM BPM 000 heartbeats 50% 0-184 Blood Pressure Overall Hypertension Level Glucose Diabetes Normal Pre Stage 1 Stage 2 Pre Systolic Diabetes 126 000 Norma 100-125 120 140 160 Diastolic Low 000 000 N. G. Sanchez 2017

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started