AddCourseWindow.axaml.cs 622 B

123456789101112131415161718192021222324252627
  1. using Avalonia;
  2. using Avalonia.Controls;
  3. using Avalonia.Interactivity;
  4. using Avalonia.Markup.Xaml;
  5. using Teachers.ViewModels;
  6. namespace Teachers;
  7. public partial class AddCourseWindow : Window
  8. {
  9. public AddCourseWindow()
  10. {
  11. InitializeComponent();
  12. DataContext = new AddTeacherViewModel();
  13. }
  14. public void bAddCourse(object sender, RoutedEventArgs args)
  15. {
  16. AddTeacherViewModel viewModel = new AddTeacherViewModel();
  17. <<<<<<< HEAD
  18. //viewModel.AddCourse();
  19. =======
  20. viewModel.AddCourse();
  21. >>>>>>> cb3f32a974d3f3dd8a95538b44505c7803821611
  22. this.Close(true);
  23. }
  24. }