/// <summary> /// Initializes a new instance of the <see cref="PostViewModel"/> class. /// </summary> public PostViewModel() { _postDomainContext = new PostDomainContext(); LoadPostsCommand = new DelegateCommand(LoadPostCommandExecute); SubmitContextCommand = new DelegateCommand(SubmitContextCommandExecute); GetPredefinedPostCommand = new DelegateCommand(GetPredefinedPostCommandExecute); }
/// <summary> /// Initializes a new instance of the <see cref="PostViewModel"/> class. /// </summary> public PostViewModel() { _postDomainContext = new PostDomainContext(); LoadPostsCommand = new DelegateCommand(LoadPostCommandExecute); SubmitContextCommand = new DelegateCommand(SubmitContextCommandExecute); GetPredefinedPostCommand = new DelegateCommand(GetPredefinedPostCommandExecute); }