public BoardListViewModel(PageNavigationService pageNavigationService)
        {
            this._pageNavigationService = pageNavigationService;

            this.Boards = new List<BoardItemViewModel>();
            this.GoToTypedBoardCommand = new RelayCommand(this.GoToTypedBoard);

            this.FillBoardList();
        }
        public ThreadListPage()
        {
            this.InitializeComponent();
            this._prevButton = (ApplicationBarIconButton)this.ApplicationBar.Buttons[2];
            this._nextButton = (ApplicationBarIconButton)this.ApplicationBar.Buttons[3];

            this._pageNavigationService = Container.Resolve<PageNavigationService>();

            this.DataContext = this._viewModel = new ThreadListViewModel();

            this.LocalizeAppBar();
        }
        public PostListViewModel(Panel popupPlaceholder)
        {
            this._popupPlaceholder = popupPlaceholder;

            this.Posts = new ObservableCollection<PostItemViewModel>();
            this._itemsByPostNumbers = new Dictionary<long, PostItemViewModel>();

            this._dvachUriParser = Container.Resolve<DvachUriParser>();
            this._urlBuilder = Container.Resolve<DvachUrlBuilder>();
            this._pageNavigationService = Container.Resolve<PageNavigationService>();
            this._popupDisplayer = Container.Resolve<PopupDisplayer>();
        }
        public AddPostViewModel()
        {
            this._navigationService = Container.Resolve<PageNavigationService>();
            this._postResponseParser = Container.Resolve<PostResponseParser>();
            this._urlBuilder = Container.Resolve<DvachUrlBuilder>();
            this._addPostStorage = Container.Resolve<AddPostStorage>();

            this.CaptchaModel = new CaptchaViewModel();
            this.IsLoaded = true;
            this._text = string.Empty;

            this.AttachFileCommand = new RelayCommand(this.AttachFile);
            this.RemoveFileCommand = new RelayCommand(this.RemoveFile);

            this._validator.AddValidationFor(() => this.Text).NotEmpty().Show(Strings.Validation_Comment);
            this._validator.AddValidationFor(() => this.CaptchaAnswer).NotEmpty().Show(Strings.Validation_CaptchaAnswer);
        }