public EditDisciplineDataPage(AdminWindow adminWindow, disciplines CurrentDiscipline) { InitializeComponent(); this.CurrentDiscipline = (disciplines)CurrentDiscipline.Clone(); EditDisciplineReference = CurrentDiscipline; Departments = Connection.Database.departments.ToList(); this.adminWindow = adminWindow; DataContext = this; }
public EditDisciplineDataPage(AdminWindow adminWindow) { InitializeComponent(); Departments = Connection.Database.departments.ToList(); CurrentDiscipline = new disciplines { discipline_name = "Какая-то дисциплина..." }; this.adminWindow = adminWindow; DataContext = this; }