1234567891011121314151617181920212223242526272829 |
- using Avalonia;
- using Avalonia.Controls;
- using Avalonia.Markup.Xaml;
- using Teachers.ViewModels;
- namespace Teachers;
- public partial class AddTeacherView : UserControl
- {
- public AddTeacherView()
- {
- InitializeComponent();
- DataContext = new AddTeacherViewModel();
- }
- public AddTeacherView(int idTeacher)
- {
- InitializeComponent();
- DataContext = new AddTeacherViewModel(idTeacher);
- }
- public void UpdatePage()
- {
- //var dc = this.DataContext;
- //this.DataContext = null;
- //this.DataContext = dc;
- //cbc.Items = this.DataContext
- }
- }
|