Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            AddWindow win = new AddWindow();

            win.ShowDialog();
            barbersList.ItemsSource = controller.GetBarber();
        }
Пример #2
0
        private void add_Click(object sender, RoutedEventArgs e)
        {
            AddWindow addW = new AddWindow();

            addW.ShowDialog();
            data.Add(new MyClass(addW.NameTextbox.Text, addW.SurnameTextbox.Text, Convert.ToInt32(addW.AgeTextbox.Text)));
            DataContext = data;
        }
Пример #3
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var win = new AddWindow
            {
                Owner = this
            };

            win.ShowDialog();
        }