public UserControlCenterViewModel() : base() { base.Title = "User Control"; base.Type = SnapInNames.UserControl; base.Logo = new Uri("pack://application:,,,/NFCAccessControlCenter;component/Images/Navigation/usercontrol.png", UriKind.Absolute); _userService = UserService.Instance; _nfcTagService = NfcTagService.Instance; _accessProfileService = AccessProfileService.Instance; _dialogService = DialogService.Instance; }
public MainViewModel() : base() { base.Title = "Home"; base.Type = SnapInNames.Main; base.Logo = new Uri("pack://application:,,,/NFCAccessControlCenter;component/Images/Navigation/home.png", UriKind.Absolute); base.InNavigation = false; _accessProfileService = AccessProfileService.Instance; _userService = UserService.Instance; _nfcTagService = NfcTagService.Instance; _userService.UserCollectionChanged += (sender, args) => { this.LoadData(); }; }