private void EditEncounter(Encounter encounter)
        {
            var form = new EncounterDetailForm(encounter);

            //Show form modally
            var result = form.ShowDialog(this);

            if (result != DialogResult.OK)
            {
                return;
            }

            //Add to database
            form.Encounter.Id = encounter.Id;
            try
            {
                _database.Update(form.Encounter);
            } catch (Exception e)
            {
                MessageBox.Show(e.Message);
            };
        }
        private void OnEncounterNew(object sender, EventArgs e)
        {
            var form = new EncounterDetailForm
            {
                Text = "Add Encounter"
            };

            //Show form modally
            var result = form.ShowDialog(this);

            if (result != DialogResult.OK)
            {
                return;
            }

            //"Add" the Encounter
            try
            {
                _database.Add(form.Encounter);
            } catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }