예제 #1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            List <string> values = new List <string>();

            values.Add(String.Format("\"{0}\"", NameBox.Text));
            values.Add(String.Format("{0}", AgeBox.Text));
            values.Add(String.Format("\"{0}\"", PhoneBox.Text));
            values.Add(String.Format("\"{0}\"", AddressBox.Text));
            values.Add("0");
            DbConnector.GetInstance().AddEntry("patient", values);
            this._parent.Enabled = true;
            PatientList list = (PatientList)this._parent;

            list.LoadEntries();
            this.Close();
        }
예제 #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            StaffTab.Enter += StaffTab_Enter;
            StaffList slist = new StaffList();

            this.StaffTab.Controls.Add(slist);

            PatientsTab.Enter += PatientsTab_Enter;
            PatientList plist = new PatientList();

            this.PatientsTab.Controls.Add(plist);

            ProceduresTab.Enter += ProceduresTab_Enter;
            ProceduresList prlist = new ProceduresList();

            this.ProceduresTab.Controls.Add(prlist);

            ReportsTab.Enter += ReportsTab_Enter;
            ReportMenu m = new ReportMenu();

            ReportsTab.Controls.Add(m);
        }
예제 #3
0
        void PatientsTab_Enter(object sender, EventArgs e)
        {
            PatientList list = (PatientList)PatientsTab.Controls[0];

            list.LoadEntries();
        }