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); }
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; }
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); }