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}\"", SpecialtyBox.Text));
            values.Add(String.Format("{0}", SalaryBox.Text));
            values.Add(String.Format("{0}", experienceBox.Text));
            DbConnector.GetInstance().AddEntry("employee", values);
            this._parent.Enabled = true;
            StaffList list = (StaffList)this._parent;

            list.LoadEntries();
            this.Close();
        }
Beispiel #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);
        }
Beispiel #3
0
        void StaffTab_Enter(object sender, EventArgs e)
        {
            StaffList list = (StaffList)StaffTab.Controls[0];

            list.LoadEntries();
        }