Esempio n. 1
0
 public static Employee GetEmployee()
 {
     var emp = new Employee()
     {
         Name = "Tom",
         Title = "Developer"
     };
     return emp;
 }
Esempio n. 2
0
 public MainWindow()
 {
    InitializeComponent();
    emp = new Employee()
    {
       Name = "Joe",
       Title = "QA"
    };
    DataContext = emp;
 }