private void InitializeOtherStuff()
        {
            db = new SQLiteDataBase();
            dgvRoom = this.roomsGridView;
            dgvBuilding = this.buildingGridView;

            dgvRoom.Columns["roomNumber"].ReadOnly = false;
            dgvRoom.Columns["buildingIDR"].ReadOnly = true;//do not allow changes to BuildingID
            dgvRoom.Columns["available"].ReadOnly = true;
            dgvRoom.Columns["roomType"].ReadOnly = true;
            dgvRoom.AutoGenerateColumns = true;
            dgvRoom.SelectionChanged += new EventHandler(this.roomsGridViewSelectionChanged);
            dgvBuilding.SelectionChanged += new EventHandler(this.buildingsGridViewSelectionChanged);

            counter = db.getMaxID("Room", "roomNumber"); // set counter to the next id.
        }
        private void InitializeOtherStuff()
        {
            db = new SQLiteDataBase();
            dgv = this.patientsGridView;
            this.enterPWB.Enabled = false;
            this.updatePWB.Enabled = false;
            this.deletePWB.Enabled = false;
            dgv.Columns["patientID"].ReadOnly = true;
            dgv.AutoGenerateColumns = true;
            dgv.CellDoubleClick += new DataGridViewCellEventHandler(patientsGridView_CellDoubleClick);
            dgv.SelectionChanged += new EventHandler(this.patientGridViewSelectionChanged);

            //this.patientsGridView.CellValueChanged += new DataGridViewCellEventHandler(this.patientsGridViewCellValueChanged);
            //use DataGridView1.CellValueChanged += new DataGridViewCellEventHandler(DataGridView1_CellValueChanged);
            //for updates, and maybe get rid of update button

            counter = db.getMaxID("Patient", "PatientID") + 1; // set counter to the next id.
        }
        private void InitializeOtherStuff()
        {
            db = new SQLiteDataBase();
            dgvPatientVisit = this.patientFilesGridView;
            dgvPatients = this.patientsGridView;
            dgvDoctors = this.doctorsGridView;
            notesBox = this.notesTextBox;
            illnessBox = this.illnessTextBox;
            outcomeBox = this.outcomeTextBox;

            this.enterPFWB.Enabled = true;
            this.updatePFWB.Enabled = true;
            this.deletePFWB.Enabled = true;

            dgvPatientVisit.Columns["visitID"].ReadOnly = true;//will become editable when double clicked
            dgvPatientVisit.Columns["patientIDPV"].ReadOnly = true;//do not allow changes to patientID
            dgvPatientVisit.Columns["doctorIDPV"].ReadOnly = true;//do not allow changes to doctorID
            dgvPatientVisit.AutoGenerateColumns = true;

            dgvPatientVisit.CellDoubleClick += new DataGridViewCellEventHandler(patientFilesGridView_CellDoubleClick);
            dgvPatientVisit.SelectionChanged += new EventHandler(patientFilesGridViewSelectionChanged);
            dgvPatients.SelectionChanged += new EventHandler(patientGridViewSelectionChanged);
            dgvDoctors.SelectionChanged += new EventHandler(doctorGridViewSelectionChanged);
            counter = db.getMaxID("PatientVisit", "visitID") + 1; // set counter to the next id.
        }
        private void InitializeOtherStuff()
        {
            db = new SQLiteDataBase();
            dgv = this.medicalProfessionalsGridView;
            this.enterMPWB.Enabled = false;
            this.updateMPWB.Enabled = false;
            this.deleteMPWB.Enabled = false;
            dgv.Columns["doctorID"].ReadOnly = true;
            dgv.AutoGenerateColumns = true;
            dgv.CellDoubleClick += new DataGridViewCellEventHandler(medicalProfessionalsGridView_CellDoubleClick);
            dgv.SelectionChanged += new EventHandler(this.medicalProfessionalsGridViewSelectionChanged);
            dateBox.MouseClick += new MouseEventHandler(dateBoxText_Click);
            dateBox.LostFocus += new EventHandler(dateBoxText_LostFocus);
            buildingBox.MouseClick += new MouseEventHandler(buildingNameBox_MouseClick);
            buildingBox.LostFocus += new EventHandler(buildingNameBox_LostFocus);
            courseBox.MouseClick += new MouseEventHandler(courseBox_MouseClick);
            courseBox.LostFocus += new EventHandler(courseBox_LostFocus);

            patientsGridView.Enabled = false;

            counter = db.getMaxID("MedicalProfessional", "DoctorID") + 1; // set counter to the next id.
        }