Exemple #1
0
 private void addPatientForm_PatientUpdateEvent(object sender, PersonIdentityEventArgs e)
 {
     var patientAttributesArray = new string[] { e.Id, e.Surname, e.Name, e.Patronymic };
     var patientItem = new ListViewItem(patientAttributesArray);
     PatientList.Items.Add(patientItem);
     patientItem.EnsureVisible();
     patientItem.Selected = true;
     PatientList.Focus();
 }
Exemple #2
0
        private void addPatientForm_PatientUpdateEvent(object sender, PersonIdentityEventArgs e)
        {
            var patientAttributesArray = new string[] { e.Id, e.Surname, e.Name, e.Patronymic };
            var patientItem            = new ListViewItem(patientAttributesArray);

            PatientList.Items.Add(patientItem);
            patientItem.EnsureVisible();
            patientItem.Selected = true;
            PatientList.Focus();
        }
 private void btSave_Click(object sender, EventArgs e)
 {
     var patient = new Patient();
     FillPatientObjectWithData(patient);
     var collection = ServerConnection.GetCollection<Patient>();
     collection.Save<Patient>(patient);
     var patientArgs = new PersonIdentityEventArgs(patient.Id.ToString(), patient.Name, patient.Surname, patient.Patronymic);
     PatientAddEvent(this, patientArgs);
     this.Close();
 }
        private void btSave_Click(object sender, EventArgs e)
        {
            var patient = new Patient();

            FillPatientObjectWithData(patient);
            var collection = ServerConnection.GetCollection <Patient>();

            collection.Save <Patient>(patient);
            var patientArgs = new PersonIdentityEventArgs(patient.Id.ToString(), patient.Name, patient.Surname, patient.Patronymic);

            PatientAddEvent(this, patientArgs);
            this.Close();
        }