private void OnCreateMapByKeyword(object sender, EventArgs e) { MVwPeopleKeyWord person = null; using (dlgCreateMapByKW dlg = new dlgCreateMapByKW()) { if (dlg.ShowDialog() == DialogResult.OK) { person = dlg.SelectedPerson; } } if (person != null) { AstroMapStaticStandAlone map = new AstroMapStaticStandAlone(person.IdPerson); _maps.Add(map); TabPage tp = CreateNewTab(person.IdPerson); CurrentMapId = person.IdPerson; } }
private void btnCreateMap_Click(object sender, EventArgs e) { SelectedPerson = (MVwPeopleKeyWord)lstResult.SelectedItem; this.DialogResult = DialogResult.OK; }