Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        private void lnkAddNewPerson_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var form = new GUI.PersonUI();

            form.Show();
        }
Пример #4
0
 private void lnkAddNewPerson_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var form = new GUI.PersonUI();
     form.Show();
 }