예제 #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            var searchpatient = new SearchPatient
            {
                Datinglistform = this
            };

            searchpatient.ShowDialog();
        }
예제 #2
0
        private void picboxSearch_Click(object sender, EventArgs e)
        {
            var searchForm = new SearchPatient {
                CheckInsForm = this
            };

            searchForm.ShowDialog();
            if (Patient == null)
            {
                return;
            }
            txtName.Text   = Patient.FirstName + @"   " + Patient.LastName;
            txtGender.Text = Patient.Gender;
            pnlShowService.Controls.Add(_chkIn.ShowService(this));
            pnlSelection.Enabled   = true;
            pnlShowService.Enabled = true;
        }
예제 #3
0
        private void btnPatient_Click(object sender, EventArgs e)
        {
            var form = new SearchPatient()
            {
                MedicalsForm = this
            };

            form.ShowDialog();
            if (Patient != null)
            {
                lblPName.Text    = Patient.FirstName + @"  " + Patient.LastName;
                lblPGender.Text  = Patient.Gender;
                lblPAddress.Text = Patient.Address;
                lblPPhone.Text   = Patient.Phone1;
                if (btnPatient.Name == "btnPatient")
                {
                    btnPatient.Name   = "btnInfoPatient";
                    btnPatient.Text   = @"ប្រវត្តិ អ្នកជម្ងឺ";
                    btnPatient.Click += btnInfoPatient_Click;
                    btnPatient.Click -= btnPatient_Click;
                }
            }
        }