public Scenario9() { this.InitializeComponent(); _employee = new Employee(); _employee.PropertyChanged += employeeChanged; Output.DataContext = _employee; ScenarioReset(null, null); }
private void Scenario3Reset(object sender, RoutedEventArgs e) { _employee = new Employee(); _employee.Name = "Jane Doe"; _employee.Organization = "Contoso"; _employee.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(employeeChanged); rootPage.DataContext = _employee; tbBoundDataModelStatus.Text = ""; }
public Scenario10() { this.InitializeComponent(); _employee = new Employee(); Output.DataContext = _employee; ScenarioReset(null, null); _employee.PropertyChanged += employeeChanged; ShowEmployeeInfo(EmployeeDataModel.Text); }
public MainWindow() { InitializeComponent(); emp = new Employee() { Title = "Janitor", Name = "John Doe" }; DataContext = emp; }