Пример #1
0
 public AppUserViewModel(IAppUserView view, CompositionContainer compositionContainer)
 {
     View                 = view;
     View.ViewModel       = this;
     ShellContainer       = compositionContainer;
     NewAppUserCommand    = new CommandHandler <object, object>(NewAppUserCommandAction);
     EditAppUserCommand   = new CommandHandler <object, object>(EditAppUserCommandAction);
     DeleteAppUserCommand = new CommandHandler <object, object>(DeleteAppUserCommandAction);
     _appUserCollection   = new Lazy <OptimizedObservableCollection <AppUser> >();
 }
Пример #2
0
 public AppUserViewModel(IAppUserView view, CompositionContainer compositionContainer)
 {
     View = view;
     View.ViewModel = this;
     ShellContainer = compositionContainer;
     NewAppUserCommand = new CommandHandler<object, object>(NewAppUserCommandAction);
     EditAppUserCommand = new CommandHandler<object, object>(EditAppUserCommandAction);
     DeleteAppUserCommand = new CommandHandler<object, object>(DeleteAppUserCommandAction);
     _appUserCollection = new Lazy<OptimizedObservableCollection<AppUser>>();
 }