private void Button_Click(object sender, RoutedEventArgs e) { AddWindow win = new AddWindow(); win.ShowDialog(); barbersList.ItemsSource = controller.GetBarber(); }
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; }
private void Button_Click_1(object sender, RoutedEventArgs e) { var win = new AddWindow { Owner = this }; win.ShowDialog(); }