Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            viewModel.AddPerson();
            var addPerson = new AddPerson();

            Application.Current.MainWindow.Opacity = 0.5;
            addPerson.Closed += AddPerson_Closed;
            addPerson.Owner   = this;
            addPerson.vm      = viewModel;
            addPerson.ShowDialog();
        }
Пример #2
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            AddPerson addPerson = new AddPerson();

            addPerson.ShowDialog();
        }