private void lnkSelectAndEditPerson_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { // first select the person: var persons = new PersonRepository().FindAll(); var form = new GUI.SelectorUI <Person>(persons); form.ShowDialog(); var selectedPerson = form.SelectedItem; // then edit this person: var personUI = new GUI.PersonUI(selectedPerson); personUI.Show(); }
private void lnkSelectAndEditPerson_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { // first select the person: var persons = new PersonRepository().FindAll(); var form = new GUI.SelectorUI<Person>(persons); form.ShowDialog(); var selectedPerson = form.SelectedItem; // then edit this person: var personUI = new GUI.PersonUI(selectedPerson); personUI.Show(); }
private void lnkAddNewPerson_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var form = new GUI.PersonUI(); form.Show(); }