Ejemplo n.º 1
0
        private void NewPerson_Click(object sender, RoutedEventArgs e)
        {
            PersonCreationWindow personCreationWindow = new PersonCreationWindow();

            personCreationWindow.OnPersonCreatedHandler += PersonCreationWindow_OnPersonCreatedHandlerAsync;
            personCreationWindow.ShowDialog();
        }
        private void CreatePersonButton_Click(object sender, RoutedEventArgs e)
        {
            var personCreationWindow = new PersonCreationWindow();

            personCreationWindow.OnPersonCreatedHandler += PersonCreationWindow_OnPersonCreatedHandler;
            personCreationWindow.Show();
        }