private void OnCharacterEdit(object sender, EventArgs e)
        {
            var existing = GetCharacter();

            if (existing == null)
            {
                return;
            }

            var form = new CharacterDetailForm(existing);

            var result = form.ShowDialog(this);

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

            //Update the Character
            //CopyCharacter(existing, form.Character);
            charList.ElementAt(charList.IndexOf(existing)).Name = form.Character.Name;
            _buttonSave.Enabled = true;

            RefreshUI();
        }
        private void OnCharacterAdd(object sender, EventArgs e)
        {
            var form = new CharacterDetailForm();

            form.Text = "Add Character";

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

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

            //"Add" the Character
            _characters.Add(form.Character);
        }
        private void OnCharacterAdd(object sender, EventArgs e)
        {
            var form = new CharacterDetailForm
            {
                Text = "Add Character"
            };

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

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

            //"Add" the Character
            charList.Add(form.Character);
            _buttonSave.Enabled = true;

            RefreshUI();
        }