public TileUnitElementEditorViewModel(TileUnitElementModel model, ITileService tileService) { _tileService = tileService; Model = model; EditCommand = new Command(OnEditCommand); UpdateTile(); }
public RegionService(IRegionRepository regionRepository, IRegionResolver regionResolver, IAggregateTileResolver tileResolver, ITileService tileService) { _regionRepository = regionRepository; _regionResolver = regionResolver; _tileResolver = tileResolver; _tileService = tileService; }
public TileUnitElementEditorViewModel(TileUnitElementModel model, ITileService tileService) { _tileService = tileService; Model = model; EditCommand = new Command(OnEditCommand); UpdateTile(); }
public ChannelItemViewModel(Channel channel) { Channel = channel; _vidMeClient = SimpleIoc.Default.GetInstance <IVidMeClient>(); _navigationService = SimpleIoc.Default.GetInstance <INavigationService>(); _tileService = SimpleIoc.Default.GetInstance <ITileService>(); }
public NotificationsPage() { InitializeComponent(); _toastService = Injector.Get <IToastService>(); _tileService = Injector.Get <ITileService>(); _dialogService = Injector.Get <IDialogService>(); }
public UserViewModel(User user) { User = user; _vidMeClient = SimpleIoc.Default.GetInstance <IVidMeClient>(); _tileService = SimpleIoc.Default.GetInstance <ITileService>(); _navigationService = SimpleIoc.Default.GetInstance <INavigationService>(); }
public TilesController(IMetricService metricService, ITileService tileService, IIntegerTileService integerTileService, IDateTimeOffsetProvider dateTimeOffsetProvider) { _metricService = metricService ?? throw new ArgumentNullException(nameof(metricService)); _tileService = tileService ?? throw new ArgumentNullException(nameof(tileService)); _integerTileService = integerTileService ?? throw new ArgumentNullException(nameof(integerTileService)); _dateTimeOffsetProvider = dateTimeOffsetProvider ?? throw new ArgumentNullException(nameof(dateTimeOffsetProvider)); }
public RiverBuilder(IAggregateTileResolver tileResolver, ITileService tileService) { this._tileResolver = tileResolver; this._tileService = tileService; this._rivers = new List<River>(); this.CreateRivers(); }
/// <summary> /// Constructor /// </summary> /// <param name="navigationService"></param> /// <param name="myCompanyClient"></param> /// <param name="tileService"></param> public VMExpenseDetail(INavigationService navigationService, IMyCompanyClient myCompanyClient, ITileService tileService) { this.myCompanyClient = myCompanyClient; this.navigationService = navigationService; this.tileService = tileService; InitializeCommand(); }
public GameEventLandingViewModel(IEventRepository eventRepository, IDrillsRepository drillsRepository, INavigationService navigationService, ITileService tileService) { _eventRepository = eventRepository; _drillsRepository = drillsRepository; _navigationService = navigationService; _tileService = tileService; }
public RecipeDetailViewModel(ITileService tileService, IDialogService dialogService, IShareService shareService, ISpeechService speechService, INavigationService navigationService) { _liveTileService = tileService; _dialogService = dialogService; _shareService = shareService; _speechService = speechService; _navigationService = navigationService; }
public App( IMineFieldService mineFieldService, ITurtleService turtleService, ITileService tileService) { _mineFieldService = mineFieldService; _turtleService = turtleService; _tileService = tileService; }
public ViewService(IViewDataService viewDataService, ITileService tileService) { if (viewDataService == null) { throw new ArgumentNullException(nameof(viewDataService)); } _viewDataService = viewDataService; _tileService = tileService; }
/// <summary> /// 构造函数。 /// </summary> /// <param name="dialogService">对话框服务。</param> /// <param name="voteService">投票服务。</param> /// <param name="navigationService">导航服务。</param> /// <param name="tileService">磁贴服务。</param> public VoteViewModel(IDialogService dialogService, IVoteService voteService, IRootNavigationService navigationService, ITileService tileService) { _dialogService = dialogService; _voteService = voteService; _navigationService = navigationService; _tileService = tileService; }
public RegionBuilder(IRegionService regionService, IRiverBuilder riverBuilder, IList<IResourceBuilder> resourceBuilders, IRegionResolver regionResolver, IAggregateTileResolver tileResolver, ITileService tileService) { _regionService = regionService; _regionResolver = regionResolver; _tileResolver = tileResolver; _tileService = tileService; _riverBuilder = riverBuilder; _resourceBuilders = resourceBuilders; }
/// <summary> /// 构造函数。 /// </summary> /// <param name="dialogService">对话框服务。</param> /// <param name="navigationService">导航服务。</param> /// <param name="peerWorkGroupEvaluationService">组内自评/互评表服务。</param> /// <param name="tileService">磁贴服务。</param> public PeerWorkGroupEvaluationViewModel(IDialogService dialogService, IRootNavigationService navigationService, IPeerWorkGroupEvaluationService peerWorkGroupEvaluationService, ITileService tileService) { _dialogService = dialogService; _navigationService = navigationService; _peerWorkGroupEvaluationService = peerWorkGroupEvaluationService; _tileService = tileService; }
/// <summary> /// 构造函数。 /// </summary> /// <param name="dialogService">对话框服务。</param> /// <param name="groupAssignmentService">小组作业服务。</param> /// <param name="navigationService">根导航服务。</param> /// <param name="tileService">磁贴服务。</param> public GroupAssignmentViewModel(IDialogService dialogService, IGroupAssignmentService groupAssignmentService, IRootNavigationService navigationService, ITileService tileService) { _dialogService = dialogService; _groupAssignmentService = groupAssignmentService; _navigationService = navigationService; _tileService = tileService; }
/// <summary> /// 构造函数。 /// </summary> /// <param name="dialogService">对话框服务。</param> /// <param name="studentAssignmentService">个人作业服务。</param> /// <param name="navigationService">根导航服务。</param> /// <param name="tileService">磁贴服务。</param> public StudentAssignmentViewModel(IDialogService dialogService, IStudentAssignmentService studentAssignmentService, IRootNavigationService navigationService, ITileService tileService) { _dialogService = dialogService; _studentAssignmentService = studentAssignmentService; _navigationService = navigationService; _tileService = tileService; }
/// <summary> /// 构造函数。 /// </summary> /// <param name="myUvpService">我的uvp服务。</param> /// <param name="dialogService">对话框服务。</param> /// <param name="rootNavigationService">根导航服务。</param> /// <param name="identityService">身份服务。</param> /// <param name="tileService">磁贴服务。</param> /// <param name="logService">日志服务。</param> public MyUvpViewModel(IMyUvpService myUvpService, IDialogService dialogService, IRootNavigationService rootNavigationService, IIdentityService identityService, ITileService tileService) { _myUvpService = myUvpService; _dialogService = dialogService; _rootNavigationService = rootNavigationService; _identityService = identityService; _tileService = tileService; }
public AccountController(UserManager <User> userManager, ApplicationDbContext dbContext, ILogger <AccountController> logger, IEmailSender emailSender, SignInManager <User> signInManager, IVillageService villageService, ITileService tileService, IResourceFieldService resourceFieldService) { _userManager = userManager; _dbContext = dbContext; _logger = logger; _emailSender = emailSender; _signInManager = signInManager; _villageService = villageService; _tileService = tileService; _resourceFieldService = resourceFieldService; }
public HotTileController( Dispatcher dispatcher, Scheduler scheduler, ITileService tileService, ILoggerFacade logger) { _random = new Random(); _dispatcher = dispatcher; _scheduler = scheduler; _tileService = tileService; _logger = logger; }
public HotTileController( Dispatcher dispatcher, Scheduler scheduler, ITileService tileService, ILoggerFacade logger) { _random = new Random(); _dispatcher = dispatcher; _scheduler = scheduler; _tileService = tileService; _logger = logger; }
/// <summary> /// Creates a new MainViewModel. /// </summary> public MainViewModel(INavigationService navigationService, IServerAccess serverAccess, IPluginLoader pluginLoader, IMainSettings settings, ITileService tileCreator, ViewPluginRequest request) { _navigationService = navigationService; _pluginLoader = pluginLoader; _serverAccess = serverAccess; _settings = settings; _tileCreator = tileCreator; _request = request; }
public NotificationService(INavigationService navigationService, IVidMeClient vidMeClient, ITileService tileService) { _vidMeClient = vidMeClient; _tileService = tileService; _navigationService = navigationService; _notificationTask = new NotificationTask(); _timer = new DispatcherTimer { Interval = TimeSpan.FromMinutes(Interval) }; _timer.Tick += TimerOnTick; }
/// <summary> /// Initializes a new instance of the ReadabilityViewModel class. /// </summary> public ReadabilityViewModel( INavigationService navigationService, IAuthenticationService authenticationService, IReadabilityClient readabilityClient, ITileService tileService, ReaderViewModel readerViewModel, ICacheService cacheService, FullPageViewModel fullPageViewModel) : base(navigationService, authenticationService, cacheService, tileService, readerViewModel, fullPageViewModel) { _readabilityClient = readabilityClient; IsPinned = TileService.IsReadabilityPinned; }
public FavoritesViewModel(INetworkService networkService, IMessenger messengerService, IFavoritesService favoritesService, ITileService tileService, IDialogService dialogService) { _networkService = networkService; _messengerService = messengerService; _favoritesService = favoritesService; _settingsService = SimpleIoc.Default.GetInstance <SettingsService>(); _tileService = tileService; _dialogService = dialogService; Favorites.Add(GroupedFavoritePlaces); Favorites.Add(GroupedFavoriteRoutes); }
/// <summary> /// Initializes a new instance of the ReadabilityViewModel class. /// </summary> public ReadabilityViewModel( INavigationService navigationService, IAuthenticationService authenticationService, IReadabilityClient readabilityClient, ITileService tileService, ReaderViewModel readerViewModel, ICacheService cacheService, FullPageViewModel fullPageViewModel) : base(navigationService, authenticationService, cacheService, tileService, readerViewModel, fullPageViewModel) { _readabilityClient = readabilityClient; IsPinned = TileService.IsReadabilityPinned; }
/// <summary> /// Initializes a new instance of the PocketViewModel class. /// </summary> public PocketViewModel( INavigationService navigationService, IPocketClient pocketClient, IAuthenticationService authenticationService, ICacheService cacheService, ITileService tileService, ReaderViewModel readerViewModel, FullPageViewModel fullPageViewModel) : base(navigationService, authenticationService, cacheService, tileService, readerViewModel, fullPageViewModel) { _pocketClient = pocketClient; IsPinned = TileService.IsPocketPinned; }
public LocalViewModel( INavigationService navigationService, IAuthenticationService authenticationService, ICacheService cacheService, ITileService tileService, ReaderViewModel readerViewModel, FullPageViewModel fullPageViewModel, EditViewModel editViewModel) : base(navigationService, authenticationService, cacheService, tileService, readerViewModel, fullPageViewModel) { _editViewModel = editViewModel; IsPinned = TileService.IsLocalPinned; }
/// <summary> /// Initializes a new instance of the PocketViewModel class. /// </summary> public PocketViewModel( INavigationService navigationService, IPocketClient pocketClient, IAuthenticationService authenticationService, ICacheService cacheService, ITileService tileService, ReaderViewModel readerViewModel, FullPageViewModel fullPageViewModel) : base(navigationService, authenticationService, cacheService, tileService, readerViewModel, fullPageViewModel) { _pocketClient = pocketClient; IsPinned = TileService.IsPocketPinned; }
public LocalViewModel( INavigationService navigationService, IAuthenticationService authenticationService, ICacheService cacheService, ITileService tileService, ReaderViewModel readerViewModel, FullPageViewModel fullPageViewModel, EditViewModel editViewModel) : base(navigationService, authenticationService, cacheService, tileService, readerViewModel, fullPageViewModel) { _editViewModel = editViewModel; IsPinned = TileService.IsLocalPinned; }
protected ProviderViewModelBase( INavigationService navigationService, IAuthenticationService authenticationService, ICacheService cacheService, ITileService tileService, ReaderViewModel readerViewModel, FullPageViewModel fullPageViewModel) { NavigationService = navigationService; AuthenticationService = authenticationService; CacheService = cacheService; TileService = tileService; ReaderViewModel = readerViewModel; FullPageViewModel = fullPageViewModel; }
protected ProviderViewModelBase( INavigationService navigationService, IAuthenticationService authenticationService, ICacheService cacheService, ITileService tileService, ReaderViewModel readerViewModel, FullPageViewModel fullPageViewModel) { NavigationService = navigationService; AuthenticationService = authenticationService; CacheService = cacheService; TileService = tileService; ReaderViewModel = readerViewModel; FullPageViewModel = fullPageViewModel; }
public UpdateTileTask() { var unityContainer = new UnityContainer(); unityContainer.RegisterType <IWallpaperService, BingWallpaperService>(); unityContainer.RegisterType <IBingWallpaperService, BingWallpaperService>(); unityContainer.RegisterType <IScreenService, ScreenService>(); unityContainer.RegisterType <IBingoWallpaperSettings, BingoWallpaperSettings>(); unityContainer.RegisterType <ITileService, TileService>(); unityContainer.RegisterType <ISystemSettingService, SystemSettingService>(); _bingWallpaperService = unityContainer.Resolve <IBingWallpaperService>(); _bingoWallpaperSettings = unityContainer.Resolve <IBingoWallpaperSettings>(); _tileService = unityContainer.Resolve <ITileService>(); _systemSettingService = unityContainer.Resolve <ISystemSettingService>(); }
public ConverterPageViewModel(IKursnaListaRepository repository, ITileService tileService) { _repository = repository; _tileService = tileService; ValutaIzItems = new ObservableCollection <IValutaViewModel>(); ValutaUItems = new ObservableCollection <IValutaViewModel>(); KonvertujCommand = new RelayCommand( () => { Result = (string.IsNullOrEmpty(Iznos) ? 0 : Convert.ToDecimal(Iznos)) * (ValutaIzItems[ValutaIzIndex].SrednjiKurs / ValutaIzItems[ValutaIzIndex].VaziZa) / (ValutaUItems[ValutaUIndex].SrednjiKurs / ValutaUItems[ValutaUIndex].VaziZa); }, () => ValutaIzIndex != -1 && ValutaUIndex != -1); SetTileCommand = new RelayCommand(SetTile); IsDataCurrent = true; }
public DawningMoon( IContentService contentService, ITileService tileService, IMapService mapService, IRegistrationService registrationService) { this.contentService = contentService; this.tileService = tileService; this.mapService = mapService; this.registrationService = registrationService; GraphicsDeviceManager = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IsMouseVisible = true; GraphicsDeviceManager.PreferredBackBufferHeight = WindowDimensions.height; GraphicsDeviceManager.PreferredBackBufferWidth = WindowDimensions.width; TransformMatrix = Matrix.CreateScale(zoom); }
public VideoItemViewModel(Video video, VideoLoadingViewModel videoLoadingViewModel) { _vidMeClient = SimpleIoc.Default.GetInstance <IVidMeClient>(); _settingsService = SimpleIoc.Default.GetInstance <IApplicationSettingsService>(); _navigationService = SimpleIoc.Default.GetInstance <INavigationService>(); _tileService = SimpleIoc.Default.GetInstance <ITileService>(); _toastService = SimpleIoc.Default.GetInstance <IToastService>(); _videoLoadingViewModel = videoLoadingViewModel; Video = video; if (Video != null && Video.Channel != null) { Channel = new ChannelItemViewModel(Video.Channel); } if (IsInDesignMode) { var user = new User { UserId = "59739", Username = "******", AvatarUrl = "https://d1wst0behutosd.cloudfront.net/avatars/59739.gif?gv2r1420954820", CoverUrl = "https://d1wst0behutosd.cloudfront.net/channel_covers/59739.jpg?v1r1420500373", FollowerCount = 1200, LikesCount = "92", VideoCount = 532, VideoViews = "71556", VideosScores = 220, Bio = "Some bio information" }; Items = new ObservableCollection <CommentViewModel> { new CommentViewModel(new Comment { Body = "This is a comment", User = user }, this) }; Video = new Video { User = user }; } }
/// <summary> /// Initializes a new instance of the InstapaperViewModel class. /// </summary> public InstapaperViewModel( INavigationService navigationService, IAuthenticationService authenticationService, IInstapaperClient instapaperClient, ICacheService cacheService, ITileService tileService, ReaderViewModel readerViewModel, FullPageViewModel fullPageViewModel) : base(navigationService, authenticationService, cacheService, tileService, readerViewModel, fullPageViewModel) { _instapaperClient = instapaperClient; IsPinned = TileService.IsInstapaperPinned; //EmailAddress = "*****@*****.**"; //Password = "******"; //EmailAddress = "*****@*****.**"; //Password = "******"; }
/// <summary> /// Initializes a new instance of the InstapaperViewModel class. /// </summary> public InstapaperViewModel( INavigationService navigationService, IAuthenticationService authenticationService, IInstapaperClient instapaperClient, ICacheService cacheService, ITileService tileService, ReaderViewModel readerViewModel, FullPageViewModel fullPageViewModel) : base(navigationService, authenticationService, cacheService, tileService, readerViewModel, fullPageViewModel) { _instapaperClient = instapaperClient; IsPinned = TileService.IsInstapaperPinned; //EmailAddress = "*****@*****.**"; //Password = "******"; //EmailAddress = "*****@*****.**"; //Password = "******"; }
public ItemDetailPageViewModel(IProductCatalogRepository productCatalogRepository, INavigationService navigationService, IShoppingCartRepository shoppingCartRepository, IAlertMessageService alertMessageService, IResourceLoader resourceLoader, ITileService tileService, ISearchPaneService searchPaneService) { _productCatalogRepository = productCatalogRepository; _shoppingCartRepository = shoppingCartRepository; _alertService = alertMessageService; _resourceLoader = resourceLoader; _tileService = tileService; _searchPaneService = searchPaneService; _isAppBarSticky = false; GoBackCommand = new DelegateCommand(navigationService.GoBack, navigationService.CanGoBack); AddToCartCommand = DelegateCommand.FromAsyncHandler(AddToCart, CanAddToCart); // <snippet802> PinProductCommand = DelegateCommand.FromAsyncHandler(PinProduct, () => SelectedProduct != null); // </snippet802> // <snippet805> UnpinProductCommand = DelegateCommand.FromAsyncHandler(UnpinProduct, () => SelectedProduct != null); // </snippet805> }
public TTT( IContentService contentService, ITileService tileService, IMapService mapService, IRegistrationService registrationService) { this.contentService = contentService; this.tileService = tileService; this.mapService = mapService; this.registrationService = registrationService; GraphicsDeviceManager = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IsMouseVisible = true; World = new Rectangle(0, 0, WindowDimensions.width / zoom, WindowDimensions.height / zoom); GraphicsDeviceManager.PreferredBackBufferHeight = WindowDimensions.height; GraphicsDeviceManager.PreferredBackBufferWidth = WindowDimensions.width; TransformMatrix = Matrix.CreateScale(zoom); Turn = Player.Human; Random = new Random(); }
public SettingsViewModel( INavigationService navigationService, ISettingsService settingsService, IAuthenticationService authenticationService, ITileService tileService, ILocalisationLoader loader, PocketViewModel pocketViewModel, ReadabilityViewModel readabilityViewModel) { _navigationService = navigationService; _settingsService = settingsService; _authenticationService = authenticationService; _tileService = tileService; _loader = loader; _pocketViewModel = pocketViewModel; _readabilityViewModel = readabilityViewModel; WordsAtATime = _settingsService.WordsAtATime; WordsPerMin = _settingsService.WordsPerMin; UseTransparentTile = _settingsService.UseTransparentTile; }
public SettingsViewModel( INavigationService navigationService, ISettingsService settingsService, IAuthenticationService authenticationService, ITileService tileService, ILocalisationLoader loader, PocketViewModel pocketViewModel, ReadabilityViewModel readabilityViewModel) { _navigationService = navigationService; _settingsService = settingsService; _authenticationService = authenticationService; _tileService = tileService; _loader = loader; _pocketViewModel = pocketViewModel; _readabilityViewModel = readabilityViewModel; WordsAtATime = _settingsService.WordsAtATime; WordsPerMin = _settingsService.WordsPerMin; UseTransparentTile = _settingsService.UseTransparentTile; }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public VideoRecordViewModel( INavigationService navigationService, ICameraInfoService cameraInfo, AvatarViewModel avatar, ITileService tileService, FoursqureViewModel foursquare) { Avatar = avatar; _navigationService = navigationService; _cameraInfo = cameraInfo; _tileService = tileService; Foursquare = foursquare; if (IsInDesignMode) { // Code runs in Blend --> create design time data. CanTurnOnFlash = true; HasFrontFacingCamera = true; } _cameraInfo.IsInitialisedChanged += CameraInfoOnIsInitialisedChanged; }
public MainViewModel(IDialogService dialogService, INotificationService notificationService, ISettingsService settingsService, INavigationService navigationService, IConfigService configService, IStorageService storageService, ITileService tileService) { _navigationService = navigationService; _configService = configService; _storageService = storageService; _settingsService = settingsService; _notificationService = notificationService; _dialogService = dialogService; _tileService = tileService; Init(); //if (App.LocalSettings.Values["Localization"] != null && (bool)App.LocalSettings.Values["Localization"] == false) //{ // var dialog = new MessageDialog("Localization in disabled, go to the settings page to activate it ?"); // //Commands // dialog.Commands.Add(new UICommand("Ok", new UICommandInvokedHandler((f) => Frame.Navigate(typeof(SettingsPage))))); // dialog.Commands.Add(new UICommand("Cancel")); // Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async () => await dialog.ShowAsync()); // return; //} }
public BuildingService(ITileService tileService, IBuildingRepository buildingRepository) { this._tileService = tileService; this._buildingRepository = buildingRepository; }
public ForestBuilder(IAggregateTileResolver tileResolver, ITileService tileService) { this._tileResolver = tileResolver; this._tileService = tileService; }
public GoldMineBuilder(IAggregateTileResolver tileResolver, ITileService tileService) { this._tileResolver = tileResolver; this._tileService = tileService; }
/// <summary> /// Renders a single tile /// </summary> /// <param name="ev"></param> /// <param name="tileSvc"></param> /// <param name="row">The row index of the tile</param> /// <param name="col">The column index of the tile</param> /// <param name="scaleindex">The scale index of the tile</param> /// <param name="group">The name of the baselayer group</param> private void RenderTile(EventWaitHandle ev, ITileService tileSvc, long row, long col, int scaleindex, string group) { ev.Reset(); lock (SyncLock) { RaiseEvents.Enqueue(new EventPassing( EventPassing.EventType.Begin, (int)row, (int)col, null, ev )); Event.Set(); } ev.WaitOne(Timeout.Infinite, true); int c = Parent.Config.RetryCount; while (c > 0) { c--; try { if (!Parent.Cancel) if (Parent.Config.RenderMethod == null) tileSvc.GetTile(MapDefinition, group, (int)col, (int)row, scaleindex, "PNG").Dispose(); //NOXLATE else Parent.Config.RenderMethod(MapDefinition, group, (int)col, (int)row, scaleindex); break; } catch (Exception ex) { if (c == 0) { Exception pex = ex; ev.Reset(); EventPassing evobj = new EventPassing( EventPassing.EventType.Error , (int)row, (int)col, ex, ev ); lock (SyncLock) { RaiseEvents.Enqueue(evobj); Event.Set(); } ev.WaitOne(Timeout.Infinite, true); if (evobj.Result == null) break; if (pex == evobj.Result) throw; else throw (Exception)evobj.Result; } } } ev.Reset(); lock (SyncLock) { RaiseEvents.Enqueue(new EventPassing( EventPassing.EventType.Finish, (int)row, (int)col, null, ev )); Event.Set(); } ev.WaitOne(Timeout.Infinite, true); }
public TileController(ITileService tileService) { this._tileService = tileService; }
public ShellViewModel(ITileService tileService) { _tileService = tileService; }