public Form1() { //this.FormBorderStyle = FormBorderStyle.None; //uncomment to make completely full screen, so close button //this.WindowState = FormWindowState.Maximized; //uncomment to make full screen InitializeComponent(); intakeStatus.newPatient = true; patientForm = new FormData(); clinicData = new ClinicData(); xmlHandler = new XMLHandler(this, patientForm); xmlReader = new XMLReader(this, patientForm, clinicData); xmlReader.LoadClinicSettings(); intakeStatus = new IntakeTabStatus(); triageStatus = new TriageTabStatus(); clinicTabStatus = new ClinicTabStatus(); pharmacyTabStatus = new PharmacyTabStatus(); //set scribe list string[] providers = clinicData.GetProviders(); for (int i = 0; i < providers.Length; i++) { comboBoxScribeList.Items.Add(providers[i]); } comboBoxScribeList.Text = "NI"; InitializeIntakeData(); InitializeTriageData(); InitializeClinicTabData(); InitializeAdminTab(); }
private void InitializeIntakeData() { intakeStatus = new IntakeTabStatus(); intakeStatus.newPatient = true; intakeStatus.hasDOB = false; intakeStatus.goodDOByear = false; intakeStatus.goodDOBmonth = false; intakeStatus.goodDOBday = false; LabelIntakeTabDOB.Visible = false; TextBoxIntakeTabDOBYear.Visible = false; TextBoxIntakeTabDOBDay.Visible = false; TextBoxIntakeTabDOBMonth.Visible = false; ListBoxPathType.Items.Clear(); //Add Elements to Path ListBox ListBoxPathType.Items.Add("linux"); ListBoxPathType.Items.Add("windows"); ListBoxPathType.Items.Add("osx"); ListBoxPathType.SetSelected(0, true); GenderComboBox.Items.Clear(); GenderComboBox.Items.Add("M"); GenderComboBox.Items.Add("F"); GenderComboBox.Text = "NI"; ComboBoxIntakeTabLanguageList.Items.Clear(); string[] languages = clinicData.GetLanguageList(); for (int i = 0; i < languages.Length; i++) { ComboBoxIntakeTabLanguageList.Items.Add(languages[i]); } ComboBoxIntakeTabLanguageList.Text = "NI"; ComboBoxIntakeTabStatusInSchool.Items.Clear(); string[] Statii = clinicData.GetSchoolStatusList(); for (int i = 0; i < Statii.Length; i++) { ComboBoxIntakeTabStatusInSchool.Items.Add(Statii[i]); } ComboBoxIntakeTabStatusInSchool.Text = "NI"; comboBox1.Items.Clear(); int[] range = clinicData.GetSchoolYearRange(); for (int i = range[0]; i <= range[1]; i++) { comboBox1.Items.Add(i); } comboBox1.Text = "NI"; ComboBoxIntakeTabHomeVillage.Items.Clear(); ComboBoxIntakeTabPresentVillage.Items.Clear(); string[] villages = clinicData.GetVillageList(); for (int i = 0; i < villages.Length; i++) { ComboBoxIntakeTabHomeVillage.Items.Add(villages[i]); ComboBoxIntakeTabPresentVillage.Items.Add(villages[i]); } ComboBoxIntakeTabHomeVillage.Text = "NI"; ComboBoxIntakeTabPresentVillage.Text = "NI"; ComboBoxIntakeTabTribe.Items.Clear(); string[] tribes = clinicData.GetTribesList(); for (int i = 0; i < tribes.Length; i++) { ComboBoxIntakeTabTribe.Items.Add(tribes[i]); } ComboBoxIntakeTabTribe.Text = "NI"; ComboBoxIntakeTabSchoolList.Items.Clear(); string[] schools = clinicData.GetSchoolNames(); for (int i = 0; i < schools.Length; i++) { ComboBoxIntakeTabSchoolList.Items.Add(schools[i]); } ComboBoxIntakeTabSchoolList.Text = "NI"; comboBox28.Items.Clear(); string[] teachers = clinicData.GetSupports(); for (int i = 0; i < teachers.Length; i++) { comboBox28.Items.Add(teachers[i]); } comboBox28.Text = "NI"; TextBoxIntakeTabPatientLastNameIn.Text = "Last Name"; TextBoxIntakeTabPatientFirstNameIn.Text = "First Name"; TextBoxIntakeTabDOBYear.Text = "YYYY"; TextBoxIntakeTabDOBMonth.Text = "MM"; TextBoxIntakeTabDOBDay.Text = "DD"; TextBoxIntakeTabEstAgeYears.Text = "YY"; TextBoxIntakeTabEstAgeMonths.Text = "MM"; TextBoxIntakeTabStatedAgeYears.Text = "YY"; TextBoxIntakeTabStatedAgeMonths.Text = "MM"; textBox27.Text = "Z-Score"; textBox28.Text = "BMI"; textBox26.Text = "Weight"; textBox29.Text = "Height"; TextBoxIntakeTabEstAgeYears.Text = "YY"; TextBoxIntakeTabEstAgeMonths.Text = "MM"; TextBoxIntakeTabStatedAgeYears.Text = "YY"; TextBoxIntakeTabStatedAgeMonths.Text = "MM"; // data displays label46.Text = label47.Text = label51.Text = label88.Text = label89.Text = ""; label90.Text = label91.Text = label92.Text = label93.Text = label94.Text = ""; label95.Text = label96.Text = label97.Text = label98.Text = ""; }