public ThreadPostBaseViewModel(string boardName)
 {
     this.BoardName = boardName;
     this.BitmapManager = Container.Resolve<BitmapManager>();
     this._urlBuilder = Container.Resolve<DvachUrlBuilder>();
     this._youtubeHelper = Container.Resolve<YoutubeHelper>();
 }
        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);
        }
 public ThreadListViewModel()
 {
     this.Threads = new ObservableCollection<ThreadItemViewModel>();
     this._bitmapManager = Container.Resolve<BitmapManager>();
     this._urlBuilder = Container.Resolve<DvachUrlBuilder>();
 }
        public CaptchaViewModel()
        {
            this._urlBuilder = Container.Resolve<DvachUrlBuilder>();

            this.RefreshImageCommand = new RelayCommand(this.RefreshImage);
        }