Esempio n. 1
0
 public ViewModelLocator()
 {
     if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
     {
         _synchronizationService.Initialize();
     }
 }
 public ViewModelLocator()
 {
     NavigationModel navigationModel = new NavigationModel();
     _synchronizationService = new SynchronizationService(navigationModel);
     if (!DesignerProperties.IsInDesignTool)
         _synchronizationService.Initialize();
     _main = new MainViewModel(_synchronizationService.Community, navigationModel, _synchronizationService);
 }
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (!DesignerProperties.IsInDesignTool)
     {
         _synchronizationService.Initialize();
     }
 }
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (DesignMode)
         _synchronizationService.Initialize();
     else
         _synchronizationService.InitializeDesignMode();
 }
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            if (!DesignerProperties.GetIsInDesignMode(new DependencyObject()))
                _synchronizationService.Initialize();

            MessageBoardSelectionModel messageBoardSelectionModel = new MessageBoardSelectionModel();
            _main = new MainViewModel(_synchronizationService.Community, messageBoardSelectionModel, _synchronizationService);
        }
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (!DesignMode)
         _synchronizationService.Initialize();
     else
         _synchronizationService.InitializeDesignData();
     _selection = new MessageBoardSelectionModel();
 }
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (!DesignerProperties.IsInDesignTool)
         _synchronizationService.Initialize();
     _selection = new MessageBoardSelectionModel();
     _main = new MainViewModel(_synchronizationService.Individual, _synchronizationService, _selection);
     _join = new JoinMessageBoardViewModel(_selection, _synchronizationService.Individual);
 }
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            if (!DesignerProperties.IsInDesignTool)
                _synchronizationService.Initialize();

            NewGameSelectionModel newGameSelection = new NewGameSelectionModel();
            _main = new MainViewModel(_synchronizationService.Community, _synchronizationService, newGameSelection);
        }
Esempio n. 9
0
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            if (!DesignerProperties.IsInDesignTool)
                _synchronizationService.Initialize();

            _conferenceSelection = new ConferenceSelection();
            _imageCache = new ImageCache();
            _searchModel = new SearchModel();
        }
Esempio n. 10
0
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (!DesignMode)
         _synchronizationService.Initialize();
     else
         _synchronizationService.InitializeDesignMode();
     _selection = new MessageBoardSelectionModel();
     _selection.SelectedShare = _synchronizationService.Individual.Shares
         .FirstOrDefault();
 }
Esempio n. 11
0
        public ViewModelLocator()
        {
            NavigationModel navigationModel = new NavigationModel();

            _synchronizationService = new SynchronizationService(navigationModel);
            if (!DesignerProperties.IsInDesignTool)
            {
                _synchronizationService.Initialize();
            }
            _main = new MainViewModel(_synchronizationService.Community, navigationModel, _synchronizationService);
        }
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            if (!DesignerProperties.IsInDesignTool)
            {
                _synchronizationService.Initialize();
            }

            NewGameSelectionModel newGameSelection = new NewGameSelectionModel();

            _main = new MainViewModel(_synchronizationService.Community, _synchronizationService, newGameSelection);
        }
Esempio n. 13
0
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            if (!DesignerProperties.IsInDesignTool)
            {
                _synchronizationService.Initialize();
            }

            _conferenceSelection = new ConferenceSelection();
            _imageCache          = new ImageCache();
            _searchModel         = new SearchModel();
        }
Esempio n. 14
0
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (DesignMode)
     {
         _synchronizationService.Initialize();
     }
     else
     {
         _synchronizationService.InitializeDesignMode();
     }
 }
Esempio n. 15
0
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (!DesignMode)
     {
         _synchronizationService.Initialize();
     }
     else
     {
         _synchronizationService.InitializeDesignData();
     }
     _selection = new MessageBoardSelectionModel();
 }
Esempio n. 16
0
 public ViewModelLocator()
 {
     _navigationModel        = new NavigationModel();
     _surveySnapshot         = new SurveySnapshotModel();
     _surveyNavigationModel  = new SurveyNavigationModel();
     _synchronizationService = new SynchronizationService(_navigationModel);
     if (!DesignerProperties.IsInDesignTool)
     {
         _synchronizationService.Initialize();
         TemporarilyPreselectDallasTechFest();
     }
     _main = new MainViewModel(_synchronizationService.Community, _navigationModel, _synchronizationService);
 }
Esempio n. 17
0
 public ViewModelLocator()
 {
     _navigationModel = new NavigationModel();
     _surveySnapshot = new SurveySnapshotModel();
     _surveyNavigationModel = new SurveyNavigationModel();
     _synchronizationService = new SynchronizationService(_navigationModel);
     if (!DesignerProperties.IsInDesignTool)
     {
         _synchronizationService.Initialize();
         TemporarilyPreselectDallasTechFest();
     }
     _main = new MainViewModel(_synchronizationService.Community, _navigationModel, _synchronizationService);
 }
Esempio n. 18
0
 public ViewModelLocator()
 {
     var navigationModel = new NavigationModel();
     var newEntry = new NewEntryModel();
     _synchronizationService = new SynchronizationService();
     if (!DesignerProperties.IsInDesignTool)
     {
         _synchronizationService.Initialize();
         navigationModel.SelectedShare = _synchronizationService.Identity.ActiveShares
             .OrderBy(share => share.Company.Name.Value)
             .FirstOrDefault();
         _main = new MainViewModel(_synchronizationService.Community, navigationModel, newEntry, _synchronizationService);
     }
 }
Esempio n. 19
0
 public ViewModelLocator()
 {
     _synchronizationService = new SynchronizationService();
     if (!DesignMode)
     {
         _synchronizationService.Initialize();
     }
     else
     {
         _synchronizationService.InitializeDesignMode();
     }
     _selection = new Models.MessageBoardSelectionModel();
     _selection.SelectedShare = _synchronizationService.Individual.Shares
                                .FirstOrDefault();
 }
Esempio n. 20
0
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            if (!DesignerProperties.IsInDesignTool)
                _synchronizationService.Initialize();
            _imageCache = new ImageCache();
            _searchModel = new SearchModel();
            _clock = new Clock();

            _main = new MainViewModel(_synchronizationService.Attendee, _synchronizationService, _imageCache, _searchModel, _clock);
            _schedule = new ScheduleViewModel(_synchronizationService, _synchronizationService.Attendee, _imageCache, _searchModel);
            _tracks = new TracksViewModel(_synchronizationService.Attendee, _imageCache, _searchModel);
            _search = new SearchViewModel(_synchronizationService.Attendee, _imageCache, _searchModel);
            _map = new MapViewModel(_synchronizationService.Attendee, _imageCache, _clock);
            _notices = new NoticesViewModel(_synchronizationService.Attendee, _imageCache, _clock);
            _settings = new SettingsViewModel(_synchronizationService.Individual, _synchronizationService.Attendee);
        }
Esempio n. 21
0
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            if (!DesignerProperties.IsInDesignTool)
            {
                _synchronizationService.Initialize();
            }
            _imageCache  = new ImageCache();
            _searchModel = new SearchModel();
            _clock       = new Clock();

            _main     = new MainViewModel(_synchronizationService.Attendee, _synchronizationService, _imageCache, _searchModel, _clock);
            _schedule = new ScheduleViewModel(_synchronizationService, _synchronizationService.Attendee, _imageCache, _searchModel);
            _tracks   = new TracksViewModel(_synchronizationService.Attendee, _imageCache, _searchModel);
            _search   = new SearchViewModel(_synchronizationService.Attendee, _imageCache, _searchModel);
            _map      = new MapViewModel(_synchronizationService.Attendee, _imageCache, _clock);
            _notices  = new NoticesViewModel(_synchronizationService.Attendee, _imageCache, _clock);
            _settings = new SettingsViewModel(_synchronizationService.Individual, _synchronizationService.Attendee);
        }
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            CompanySelectionModel companySelection = new CompanySelectionModel();
            GameSelectionModel gameSelection = new GameSelectionModel(companySelection);
            if (!DesignerProperties.IsInDesignTool)
            {
                _synchronizationService.Initialize();
                companySelection.SelectedCompany = _synchronizationService
                    .Individual.Companies
                    .Ensure()
                    .FirstOrDefault();
            }

            _main = new MainViewModel(
                _synchronizationService.Community,
                _synchronizationService,
                companySelection,
                gameSelection);
        }
        public ViewModelLocator()
        {
            _synchronizationService = new SynchronizationService();
            CompanySelectionModel companySelection = new CompanySelectionModel();
            GameSelectionModel    gameSelection    = new GameSelectionModel(companySelection);

            if (!DesignerProperties.IsInDesignTool)
            {
                _synchronizationService.Initialize();
                companySelection.SelectedCompany = _synchronizationService
                                                   .Individual.Companies
                                                   .Ensure()
                                                   .FirstOrDefault();
            }

            _main = new MainViewModel(
                _synchronizationService.Community,
                _synchronizationService,
                companySelection,
                gameSelection);
        }