Ejemplo n.º 1
0
 public AddPollPageViewModel(
     IObjectFactory <IPoll> pollObjectFactory,
     IObjectFactory <IPollOption> pollOptionObjectFactory,
     IObjectFactory <ICategoryCollection> categoryObjectFactory,
     IMessageBox messageBox,
     ILogger logger,
     PollImageViewModel pollImageViewModel)
 {
     this.pollObjectFactory       = pollObjectFactory;
     this.pollOptionObjectFactory = pollOptionObjectFactory;
     this.categoryObjectFactory   = categoryObjectFactory;
     this.messageBox         = messageBox;
     this.logger             = logger;
     this.PollImageViewModel = pollImageViewModel;
 }
Ejemplo n.º 2
0
        public AddPollPageViewModel(
            IObjectFactory<IPoll> pollObjectFactory,
            IObjectFactory<IPollOption> pollOptionObjectFactory,
            IObjectFactory<ICategoryCollection> categoryObjectFactory,
            IMessageBox messageBox,
			ILogger logger,
            PollImageViewModel pollImageViewModel)
        {
            this.pollObjectFactory = pollObjectFactory;
            this.pollOptionObjectFactory = pollOptionObjectFactory;
            this.categoryObjectFactory = categoryObjectFactory;
            this.messageBox = messageBox;
			this.logger = logger;
            this.PollImageViewModel = pollImageViewModel;
        }
Ejemplo n.º 3
0
        public AddPollPageViewModel(
            INavigation navigation,
            IObjectFactory<IPoll> pollObjectFactory,
            IObjectFactory<IPollOption> pollOptionObjectFactory,
            IObjectFactory<ICategoryCollection> categoryObjectFactory,
            IMessageBox messageBox,
			PollImageViewModel pollImageViewModel)
            : base(navigation)
        {
            this.pollObjectFactory = pollObjectFactory;
            this.pollOptionObjectFactory = pollOptionObjectFactory;
            this.categoryObjectFactory = categoryObjectFactory;
            this.messageBox = messageBox;
			this.PollImageViewModel = pollImageViewModel;
            this.PollAnswers = new ObservableCollection<PollAnswerViewModel>();
        }
Ejemplo n.º 4
0
 public async Task AddImageHandler()
 {
     await PollImageViewModel.AddImage();
 }