public UserAdminViewModel( UserBasicInfoRepository repository, IViewService viewService) : base(repository) { container = ServiceLocator.Current.GetInstance <IUnityContainer>(); ViewService = viewService; this.repository = repository; var eventAggregator = ServiceLocator.Current.GetInstance <IEventAggregator>(); eventAggregator.GetEvent <FileDialogArgsEvent>().Subscribe(DoOpenFileCallback); DoWork("-1"); UploadImage = new DelegateCommand(DoUploadImage, CanUploadImage); SelectedItemsCommand = new DelegateCommand(DoSelectedItemsCommand, CanSelectedItemsCommand); UserGroupSelectedItemCommand = new DelegateCommand(DoUserGroupSelectedItemsCommand, CanUserGroupSelectedItemCommand); TabSelectedIndex = ViewService.TabSelectedIndex; }
public UserAdminViewModel( UserBasicInfoRepository repository) : base(repository, "UserBasicInfo") { }