Exemplo n.º 1
0
		public PollResultsPageViewModel(
			INavigation navigation,
			IObjectFactory<IPollResults> objectFactory,
			IObjectFactory<IPoll> pollFactory,
			IObjectFactory<IPollComment> pollCommentFactory,
			IMessageBox messageBox
#if NETFX_CORE
			, IShareManager shareManager,
			ISecondaryPinner secondaryPinner
#endif // NETFX_CORE
			)
			: base(navigation)
		{
			this.objectFactory = objectFactory;
			this.pollFactory = pollFactory;
			this.pollCommentFactory = pollCommentFactory;
			this.messageBox = messageBox;

			this.PollComments = new ObservableCollection<PollCommentViewModel>();

#if NETFX_CORE
			this.shareManager = shareManager;
			this.secondaryPinner = secondaryPinner;
#endif // NETFX_CORE
		}
Exemplo n.º 2
0
        public PollResultsPageViewModel(
            IObjectFactory <IPollResults> objectFactory,
            IObjectFactory <IPoll> pollFactory,
            IObjectFactory <IPollComment> pollCommentFactory,
            IMessageBox messageBox,
            ILogger logger
#if NETFX_CORE
            , IShareManager shareManager,
            ISecondaryPinner secondaryPinner
#endif // NETFX_CORE
            )
        {
            this.objectFactory      = objectFactory;
            this.pollFactory        = pollFactory;
            this.pollCommentFactory = pollCommentFactory;
            this.messageBox         = messageBox;
            this.logger             = logger;

            this.PollComments    = new ObservableCollection <PollCommentViewModel>();
            this.PollDataResults = new ObservableCollection <PollDataResultViewModel>();

#if NETFX_CORE
            this.shareManager    = shareManager;
            this.secondaryPinner = secondaryPinner;
#endif // NETFX_CORE
        }
Exemplo n.º 3
0
 public FeedItemViewModel(
     ISerializer serializer,
     IStorage storage,
     ISecondaryPinner secondaryPinner)
     : base(serializer)
 {
     this.storage         = storage;
     this.secondaryPinner = secondaryPinner;
 }
Exemplo n.º 4
0
		public Win8FeedItemViewModel(
			ISerializer serializer,
			IStorage storage,
			ISecondaryPinner secondaryPinner,
			IShareManager shareManager)
			: base(serializer, storage, secondaryPinner)
		{
			this.shareManager = shareManager;
		}
Exemplo n.º 5
0
 public Win8FeedItemViewModel(
     ISerializer serializer,
     IStorage storage,
     ISecondaryPinner secondaryPinner,
     IShareManager shareManager)
     : base(serializer, storage, secondaryPinner)
 {
     this.shareManager = shareManager;
 }
Exemplo n.º 6
0
		public ViewPollPageViewModel(
			INavigation navigation,
			IObjectFactory<IPollSubmissionCommand> objectFactory,
			IObjectFactory<IPoll> pollFactory,
			IMessageBox messageBox
#if NETFX_CORE
			, IShareManager shareManager,
			ISecondaryPinner secondaryPinner
#endif // NETFX_CORE
)
			: base(navigation)
		{
			this.objectFactory = objectFactory;
			this.pollFactory = pollFactory;
			this.messageBox = messageBox;

#if NETFX_CORE
			this.shareManager = shareManager;
			this.secondaryPinner = secondaryPinner;
#endif // NETFX_CORE
		}
Exemplo n.º 7
0
        public ViewPollPageViewModel(
            IObjectFactory <IPollSubmissionCommand> objectFactory,
            IObjectFactory <IPoll> pollFactory,
            IMessageBox messageBox,
            ILogger logger
#if NETFX_CORE
            , IShareManager shareManager,
            ISecondaryPinner secondaryPinner
#endif // NETFX_CORE
            )
        {
            this.objectFactory = objectFactory;
            this.pollFactory   = pollFactory;
            this.messageBox    = messageBox;
            this.logger        = logger;

#if NETFX_CORE
            this.shareManager    = shareManager;
            this.secondaryPinner = secondaryPinner;
#endif // NETFX_CORE
        }
Exemplo n.º 8
0
        public WP8FeedItemViewModel(
            ISerializer serializer,
            IStorage storage,
            ISecondaryPinner secondaryPinner)
            : base(serializer, storage, secondaryPinner)
        {
            this.AppBarButtons = new ObservableCollection <BindableApplicationBarIconButton>();

            this.PinButton = new BindableApplicationBarIconButton
            {
                IconUri         = new Uri("/Assets/PinIcon.png", UriKind.Relative),
                Text            = "pin",
                ClickMethodName = "Pin"
            };

            this.UnpinButton = new BindableApplicationBarIconButton
            {
                IconUri         = new Uri("/Assets/UnpinIcon.png", UriKind.Relative),
                Text            = "unpin",
                ClickMethodName = "Unpin"
            };
        }
Exemplo n.º 9
0
		public WP8FeedItemViewModel(
			ISerializer serializer,
			IStorage storage,
			ISecondaryPinner secondaryPinner)
			: base(serializer, storage, secondaryPinner)
		{
			this.AppBarButtons = new ObservableCollection<BindableApplicationBarIconButton>();

			this.PinButton = new BindableApplicationBarIconButton
			{
				IconUri = new Uri("/Assets/PinIcon.png", UriKind.Relative),
				Text = "pin",
				ClickMethodName = "Pin"
			};

			this.UnpinButton = new BindableApplicationBarIconButton
			{
				IconUri = new Uri("/Assets/UnpinIcon.png", UriKind.Relative),
				Text = "unpin",
				ClickMethodName = "Unpin"
			};
		}