AddTeacherView.axaml.cs 434 B

123456789101112131415161718192021
  1. using Avalonia;
  2. using Avalonia.Controls;
  3. using Avalonia.Markup.Xaml;
  4. using Teachers.ViewModels;
  5. namespace Teachers;
  6. public partial class AddTeacherView : UserControl
  7. {
  8. public AddTeacherView()
  9. {
  10. InitializeComponent();
  11. DataContext = new AddTeacherViewModel();
  12. }
  13. public AddTeacherView(int idTeacher)
  14. {
  15. InitializeComponent();
  16. DataContext = new AddTeacherViewModel(idTeacher);
  17. }
  18. }