Exemple #1
0
        private void ProcessShowManageUserMessage(ShowManageUserViewMessage message)
        {
            if (_manageUserViewModel == null)
            {
                _manageUserViewModel = Container.Resolve <IManageUserViewModel>();
                MainRegion.Add(_manageUserViewModel.View);
            }

            _manageUserViewModel.User = message.User;
            MainRegion.Activate(_manageUserViewModel.View);
        }
Exemple #2
0
        private void ProcessShowUserListViewMessage(ShowUserListViewMessage message)
        {
            if (_usersListViewModel == null)
            {
                _usersListViewModel = Container.Resolve <IUsersListViewModel>();
                MainRegion.Add(_usersListViewModel.View);
            }

            if (message.Reload)
            {
                _usersListViewModel.LoadAsync();
            }
            MainRegion.Activate(_usersListViewModel.View);
        }