private void ButtonAddSkillClick(object sender, EventArgs e) { using (var dialog = new EditSkillDialog()) { if (dialog.ShowDialog(this) != DialogResult.OK) return; this._class.learnings.Add(dialog.Learning); this.RefreshSkills(); } }