123456789101112131415161718192021 |
- using Avalonia;
- using Avalonia.Controls;
- using Avalonia.Markup.Xaml;
- using TeacheresAndCourses.ViewModels;
- namespace TeacheresAndCourses;
- public partial class AddTeacher : UserControl
- {
- public AddTeacher()
- {
- InitializeComponent();
- DataContext = new AddTeacherViewModel();
- }
- public AddTeacher(int teacherId)
- {
- InitializeComponent();
- DataContext = new AddTeacherViewModel(teacherId);
- }
- }
|