예제 #1
0
        public ShellViewModel()
        {
            this.DisplayName = "Master-Detail";

            this.Employees = new BindableCollection<EmployeeModel>();

            this.Employees.Add(new EmployeeModel() { Name = "Fred" });
            this.Employees.Add(new EmployeeModel() { Name = "Bob" });

            this.SelectedEmployee = this.Employees.FirstOrDefault();
        }
예제 #2
0
 public void RemoveEmployee(EmployeeModel item)
 {
     this.Employees.Remove(item);
 }
예제 #3
0
 public void RemoveEmployee(EmployeeModel item)
 {
     this.Employees.Remove(item);
 }