Example #1
0
        private void OpenInvoice(ProformaInvoice proformaInvoice)
        {
            this.splitContainer1.Panel2.Controls.Clear();
            var userForm = new UI.SinglePatientMain(proformaInvoice.Customer);

            userForm.PatientSaved += NewPatient;
            userForm.Dock          = DockStyle.Fill;
            this.splitContainer1.Panel2.Controls.Add(userForm);
            userForm.OpenInvoice(proformaInvoice);
        }
Example #2
0
        private void OnOpenVisit(object sender, EventArgs e)
        {
            var vc = (UI.VisitListCtrl)sender;

            this.splitContainer1.Panel2.Controls.Clear();
            var userForm = new UI.SinglePatientMain(vc.SelectedVisit?.Customer);

            userForm.PatientSaved += NewPatient;
            userForm.Dock          = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Panel2.Controls.Add(userForm);
            userForm.OpenVisit(vc.SelectedVisit);
        }
Example #3
0
        private void OnNameClicked(object sender, EventArgs e)
        {
            var control = (UI.PatientListItem)sender;

            if (control.Customer == null)
            {
                AddDashBoard();
            }
            else
            {
                this.splitContainer1.Panel2.Controls.Clear();
                var userForm = new UI.SinglePatientMain(control.Customer);
                userForm.PatientSaved += NewPatient;
                userForm.Dock          = DockStyle.Fill;
                this.splitContainer1.Panel2.Controls.Add(userForm);
            }

            foreach (var c in this.panel2.Controls)
            {
                var uc = (UI.PatientListItem)c;
                uc.BackColor = Color.White;
            }
            control.BackColor = Color.FromArgb(255, 236, 236);
        }