Ejemplo n.º 1
0
 public LoggedViewModel(UserViewModel user)
 {
     this.user     = user;
     Close         = new RelayCommand <Window>(_Close);
     Minimize      = new RelayCommand <Window>(_Minimize);
     WindowClosing = new NormalCommand(Closing);
     WindowLoaded  = new RelayCommand <WrapPanel>(windowLoaded);
     AddUser       = new NormalCommand(addUser);
     RemoveUser    = new RelayCommand <ListBox>(removeUser);
     EditUser      = new NormalCommand(editUser);
     this.Index    = -1;
 }