Ejemplo n.º 1
0
        private void AddHealthStatus_Click(object sender, EventArgs e)
        {
            HealthStatusForm healthStatusForm = new HealthStatusForm();

            healthStatusForm.user      = user;
            healthStatusForm.newStatus = true;

            healthStatusForm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void Change_Click(object sender, EventArgs e)
        {
            HealthStatusForm statusForm = new HealthStatusForm();

            statusForm.newStatus = false;

            int row = MedicalResults.SelectedCells[0].RowIndex;

            HealthStatus changed = _container.HealthStatusSet.Find(int.Parse(MedicalResults.Rows[row].Cells[3].Value.ToString()));

            statusForm.status = changed;

            statusForm.ShowDialog();

            _container.SaveChanges();
            RefreshMedicalResults();
        }