private void ReservePatientRoom_Load(object sender, EventArgs e) { this.populatePatientRooms(); this.populatePatients(); var equipement = DbAdapter.getEquipement(); foreach (var eq in equipement) { this.checkedListBoxEquipment.Items.Add(eq); } this.populateAutoComplete(this.patientsTable, new List <TextBox>() { this.textBoxId, this.textBoxFirstName, this.textBoxSurname, this.textBoxIllness }); this.populateAutoComplete(this.roomsTable, new List <TextBox>() { this.textBoxRoomNr, this.textBoxDepartment }); this.populateRoomsOccupancy(); this.dateTimePickerCheckInDate.Value = System.DateTime.Now; this.dateTimePickerCheckOutDate.Value = DateTime.Now; this.dateTimePickerCheckInDate.MinDate = DateTime.Now; this.dateTimePickerCheckOutDate.MinDate = DateTime.Now; this.buttonSave.Enabled = false; this.Refresh(); }
public ReserveIsolationRoom() { InitializeComponent(); var equipement = DbAdapter.getEquipement(); foreach (var eq in equipement) { this.checkedListBox1.Items.Add(eq); } }