Пример #1
0
 public static TestEmployee GetEmployee()
 {
     var emp = new TestEmployee()
     {
         Name = "Esteban",
         Title = "Developer"
     };
     return emp;
 }
Пример #2
0
        public WindowTest()
        {
            InitializeComponent();
            emp = new TestEmployee()
            {
                Name = "Mauricio",
                Title = "QA",
                Start = DateTime.Now
            };

            // DataContext = emp;
            DataContext = new ErrorAgain();
            EmployeesListComboBox.ItemsSource = ListEmployee.GetEmployees();
        }