public NewPatient(SchedulerMain schedulerMain) { InitializeComponent(); PregnantBox.Hide(); PregnantLabel.Hide(); NotPregnantBox.Hide(); this.schedulerMain = schedulerMain; ProviderList.ValueMember = "ProviderID"; ProviderList.DisplayMember = "ProviderName"; ProviderList.DataSource = schedulersBelongingToProviderTableAdapter1.GetDataBySchedulerID(schedulerMain.GetSchedulerID()); }
public NewPatient(ProviderMain providerMain) { InitializeComponent(); PregnantBox.Hide(); PregnantLabel.Hide(); NotPregnantBox.Hide(); ProviderList.Hide(); ChooseProviderLabel.Hide(); this.providerMain = providerMain; providerIDList.Add(providerMain.GetProviderID()); }
private void MaleCheckBox_CheckedChanged(object sender, EventArgs e) { if (!FemaleCheckBox.Checked && MaleCheckBox.Checked || (FemaleCheckBox.Checked && MaleCheckBox.Checked)) { PregnantLabel.Hide(); PregnantBox.Hide(); NotPregnantBox.Hide(); WeightLabel.Top = 338; WeightBox.Top = 338; kgLabel.Top = 342; HeightLabel.Top = 382; HeightBox.Top = 382; cmLabel.Top = 385; NationalityLabel.Top = 422; NationalityBox.Top = 422; } }