Example #1
0
        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;
            }
        }
Example #2
0
        private void btnCreateMap_Click(object sender, EventArgs e)
        {
            SelectedPerson = (MVwPeopleKeyWord)lstResult.SelectedItem;

            this.DialogResult = DialogResult.OK;
        }