public Form2(ClientDoctor clientDoctor, Patient patient) { InitializeComponent(); this.Doctor = clientDoctor; this.Patient = patient; this.DateList = new List <string>(); if (this.Doctor.AstrandSessions != null) { this.AstrandSessions = this.Doctor.AstrandSessions; } this.DateListBox = DatesBox; this.RpmChart = RPMC; this.PulseChart = PulseC; this.PowerChart = PowerC; FillListBox(); if (this.DateList.Count > 0) { this.DatesBox.SelectedItem = this.DateList[0]; } PatientNameLabel.Text = this.Patient.name; WeightLabel.Text = this.Patient.weight.ToString(); HeightLabel.Text = this.Patient.height.ToString(); AgeLabel.Text = this.Patient.age.ToString(); if (this.AstrandSessions.Count > 0) { Vo2Label.Text = this.AstrandSessions[0].VO2.ToString(); } }
public BikeClientInfo(string machineName, TabControl tabControl, ClientDoctor clientDoctor, string patientName, string date, Patient patient) { this.bikeName = machineName; this.tabControl1 = tabControl; this.doctor = clientDoctor; InitializeComponent(); LoginForm.doctor.bikeDataChanged += bikeDataChanged; this.patientName = patientName; this.date = date; lblName.Text = patientName; lblDateOfBirth.Text = date; lblBikeInfo.Text = bikeName; this.patient = patient; this.AaPatient = patient; }
public Form1(ClientDoctor clientDoctor, Patient patient) { InitializeComponent(); this.Text = "Main Menu"; this.tabControl1.DrawMode = TabDrawMode.OwnerDrawFixed; this.tabControl1.DrawItem += new DrawItemEventHandler(this.tabControl1_DrawItem); this.doctor = clientDoctor; if (Form1.patients == null) { patients = new List <Patient>(); } listBox1.DataSource = machineNames; listBox2.DataSource = names; this.patient = patient; Console.WriteLine("PATIENT IN FORM: " + patient.ToString()); GenderCombo.SelectedIndex = 0; }
public AvansAstrand(ClientDoctor clientDoc, string name, Patient p, BikeClientInfo bikeInfo) { InitializeComponent(); this.Vo2 = VO2Max; this.machineName = name; this.time = ""; this.doctor = clientDoc; this.Chart = DataChart; this.infoScreen = InfoBox; this.UpdateText = UpdateLabel; this.HeartBeatLabel = HartslagLabel; this.RPMLabel = RPMlabel; this.PowerLabel = WeerstandLabel; Patient patient = p; //this.exercise = new Exercise(this, doctor, name, patient, bikeInfo); this.hasBeen0 = false; this.doctor.AvansAstrand = this; }