Example #1
0
 public CreateAccountPageViewModel(ILogger logger, IUiNavigationService navigationService, IParticipantService participantService)
 {
     _logger             = logger;
     _navigationService  = navigationService;
     _participantService = participantService;
     RegisterCommand     = new DelegateCommand(async() => await Register());
 }
Example #2
0
        public BrainstormingPageViewModel(
            IUiNavigationService navigationService,
            BrainstormingContext brainstormingContext,
            IBrainstormingService brainstormingService,
            IToastMessageService toastMessageService,
            IClipboardService clipboardService)
        {
            _navigationService    = navigationService;
            _context              = brainstormingContext;
            FindingTitle          = brainstormingContext.CurrentFinding?.Name;
            FindingDescription    = brainstormingContext.CurrentFinding?.ProblemDescription;
            FindingCategory       = brainstormingContext.CurrentFinding?.Category;
            _toastMessageService  = toastMessageService;
            _brainstormingService = brainstormingService;
            _clipboardService     = clipboardService;
            UpdateProperties();

            CommitCommand        = new DelegateCommand(async() => await CommitIdea());
            SendBrainwaveCommand = new DelegateCommand(SendBrainWave);
            RefreshCommand       = new DelegateCommand(RefreshPage);
            TapCommand           = new DelegateCommand(StartBrainstorming);
            InsertSpecialCommand = new DelegateCommand(InsertSpecial);
            DownloadImageCommand = new DelegateCommand <Idea>(async(si) => await DownloadImage(si));
            ClickUrlCommand      = new DelegateCommand <string>(ClickUrl);
            ExportCommand        = new DelegateCommand(async() => await Export());

            CommitEnabled = true;
        }
Example #3
0
 public NewTeamPageViewModel(
     ILogger logger,
     IUiNavigationService navigationService,
     ITeamService teamService,
     BrainstormingContext context)
 {
     _logger            = logger;
     _navigationService = navigationService;
     _teamService       = teamService;
     _context           = context;
     CreateTeamCommand  = new DelegateCommand(AddTeam);
 }
Example #4
0
        public NewBrainstormingPageViewModel(
            ILogger logger,
            IUiNavigationService navigationService,
            IDalService dalService,
            BrainstormingContext brainstormingContext)
        {
            _logger                  = logger;
            _navigationService       = navigationService;
            _brainstormingDalService = dalService.BrainstormingDalService;
            _context                 = brainstormingContext;
            CreateFindingCommand     = new DelegateCommand(CreateFinding);

            HasInvalidChars = false;
        }
Example #5
0
        public LoginPageViewModel(
            ILogger logger,
            IUiNavigationService navigationService,
            IDalService dalService,
            BrainstormingContext context)
        {
            _logger                = logger;
            _navigationService     = navigationService;
            _participantDalService = dalService.ParticipantDalService;
            _context               = context;

            LoginCommand        = new DelegateCommand(async() => await Login());
            ShowRegisterCommand = new DelegateCommand(ShowRegister);
        }
Example #6
0
        public BrainstormingFindingListPageViewModel(IUiNavigationService navigationService,
                                                     IDalService iDalService,
                                                     BrainstormingContext brainstormingContext,
                                                     ILogger logger)
        {
            _navigationService       = navigationService;
            _brainstormingDalService = iDalService.BrainstormingDalService;
            _brainstormingContext    = brainstormingContext;
            _logger = logger;

            FillFindingListItems();

            _brainstormingContext.PropertyChanged += Context_PropertyChanged;

            SelectFindingCommand = new DelegateCommand(SelectFinding);
            CreateFindingCommand = new DelegateCommand(async() => await CreateBrainstormingFinding());
        }
Example #7
0
        public TeamPageViewModel(
            ILogger logger,
            IUiNavigationService navigationService,
            ITeamService teamService,
            BrainstormingContext context)
        {
            _logger            = logger;
            _navigationService = navigationService;
            _teamService       = teamService;
            _context           = context;

            TeamList = FillTeamList();
            if (TeamList.Any() && _context.CurrentBrainstormingTeam == null)
            {
                SelectedTeam = TeamList[0];
                _context.CurrentBrainstormingTeam = SelectedTeam;
            }
            SelectTeamCommand = new DelegateCommand(SelectTeam);
            CreateTeamCommand = new DelegateCommand(async() => await CreateTeam());
            JoinTeamCommand   = new DelegateCommand(async() => await JoinTeam());
            LeaveTeamCommand  = new DelegateCommand <BrainstormingTeam>(LeaveTeam);
            RefreshCommand    = new DelegateCommand(async() => await Task.Run(RefreshTeamList));
        }
 public InsertSpecialPageViewModel(IUiNavigationService navigationService)
 {
     _navigationService = navigationService;
     SketchIdeaCommand  = new DelegateCommand(ChooseSketchIdea);
     PatternIdeaCommand = new DelegateCommand(ChoosePatternIdea);
 }