private void NewSkill_Click(object sender, EventArgs e) { SkillForm r = new SkillForm(new Skill() { Source = Program.Context.Config.DefaultSource }); r.Saved += SkillSaved; r.Show(); }
private void editSkill(object sender, EventArgs e) { if (skillList.SelectedItem == null) { return; } Skill selected = Program.Context.GetSkill((string)skillList.SelectedItem, null); if (selected != null) { string sel = selected.Name; SkillForm r = new SkillForm(selected.Clone()); r.Saved += SkillSaved; r.Show(); } }