private void Initialize()
 {
     ShowUsersViewCommand              = new Misc.Command(ShowUsersAction);
     ShowExpertGroupsViewCommand       = new Misc.Command(ShowExpertGroupsAction);
     ShowQuestionnairesViewCommand     = new Misc.Command(ShowQuestionnairesAction);
     ShowWorkQuestionnairesViewCommand = new Misc.Command(ShowWorkQuestionnairesViewAction);
     ShowExpertAnswersCommand          = new Misc.Command(ShowExpertAnswersAction);
 }
Exemplo n.º 2
0
        protected override void Initialize()
        {
            base.Initialize();

            AddCommand     = new Misc.Command(AddAction);
            EditCommand    = new Misc.Command(EditAction, CanDoWithSelection);
            DeleteCommand  = new Misc.Command(DeleteAction, CanDoWithSelection);
            SaveCommand    = new Misc.Command(SaveAction, CanSaveAction);
            RefreshCommand = new Misc.Command(RefreshAction, CanRefreshAction);

            Items.CollectionChanged += Items_CollectionChanged;
        }
Exemplo n.º 3
0
        public StartViewModel(Model.UserModel userModel)
        {
            _userModel      = userModel;
            ErrorText       = String.Empty;
            ContinueCommand = new Misc.Command(ContinueAction);

            _userModel.Update();
            if (!_userModel.Items.Any())
            {
                CreateDefaultUser();
            }
        }
 protected virtual void Initialize()
 {
     OkCommand    = new Misc.Command(OkAction);
     CloseCommand = new Misc.Command(CloseAction);
 }
 private void Initialize()
 {
     ContinueCommand = new Misc.Command(ContinueAction);
 }