private void AddLibraryBtn_Click(object sender, EventArgs e) { LibrarySelectForm librarySelectForm = new LibrarySelectForm(); if (librarySelectForm.ShowDialog() == DialogResult.OK) { Library selectedLibrary = librarySelectForm.SelectedLibrary; selectedLibrary.Traps.Add(this.fTrapElement.Trap.Copy()); } }
private void AddLibraryBtn_Click(object sender, EventArgs e) { LibrarySelectForm librarySelectForm = new LibrarySelectForm(); if (librarySelectForm.ShowDialog() == DialogResult.OK) { Library selectedLibrary = librarySelectForm.SelectedLibrary; selectedLibrary.SkillChallenges.Add(this.fChallenge.Copy() as SkillChallenge); } }
private void AddLibraryBtn_Click(object sender, EventArgs e) { LibrarySelectForm dlg = new LibrarySelectForm(); if (dlg.ShowDialog() == DialogResult.OK) { Library lib = dlg.SelectedLibrary; lib.Traps.Add(fTrapElement.Trap.Copy()); } }
private void AddLibraryBtn_Click(object sender, EventArgs e) { LibrarySelectForm dlg = new LibrarySelectForm(); if (dlg.ShowDialog() == DialogResult.OK) { Library lib = dlg.SelectedLibrary; lib.SkillChallenges.Add(fChallenge.Copy() as SkillChallenge); } }