Exemplo n.º 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();
        }
Exemplo n.º 2
0
 public void RemoveEmployee(EmployeeModel item)
 {
     this.Employees.Remove(item);
 }
Exemplo n.º 3
0
 public void RemoveEmployee(EmployeeModel item)
 {
     this.Employees.Remove(item);
 }