public static TestEmployee GetEmployee() { var emp = new TestEmployee() { Name = "Esteban", Title = "Developer" }; return emp; }
public WindowTest() { InitializeComponent(); emp = new TestEmployee() { Name = "Mauricio", Title = "QA", Start = DateTime.Now }; // DataContext = emp; DataContext = new ErrorAgain(); EmployeesListComboBox.ItemsSource = ListEmployee.GetEmployees(); }