public SetRandomPortsFeature( IPortService portService, IProjectService projectService) : base(projectService) { this.portService = portService; }
public StaticPreviewViewModel(IScan scanService, IUserSettingService userSettingService, IErrorService errorService, ILog logService, ILogInstanceManager logInstanceManager, IPortService portService) { this.scanService = scanService; this.selectedPreviewImage = 1; this.Title = Resources.Preview; this.PreviewNotAvailable = true; // Live Preview this.userSettingService = userSettingService; this.errorService = errorService; this.logService = logService; this.logInstanceManager = logInstanceManager; this.portService = portService; this.Title = "Preview"; this.Percentage = "0.00%"; this.PercentageValue = 0; this.Duration = 30; this.CanPlay = true; this.useSystemDefaultPlayer = userSettingService.GetUserSetting<bool>(UserSettingConstants.DefaultPlayer); this.Duration = userSettingService.GetUserSetting<int>(UserSettingConstants.LastPreviewDuration); this.previewRotateFlip = userSettingService.GetUserSetting<bool>(UserSettingConstants.PreviewRotationFlip); this.NotifyOfPropertyChange(() => this.previewRotateFlip); // Don't want to trigger an Update, so setting the backing variable. }
public PortViewModel( IBaseService baseService, IPortService portService, ISettingsService settingsService, IEventAggregator eventAggregator ) : base(baseService) { TabName = "Hamn"; _baseService = baseService; _portService = portService; _settingsService = settingsService; _eventAggregator = eventAggregator; ConstructShipyardCommand = new DelegateCommand(ExecuteConstructShipyardCommand); // Test Delegate Commands SetGotShipyard = new DelegateCommand(ExecuteSetGotShipyard); SetBuildingShipyard = new DelegateCommand(ExecuteSetBuildingShipyard); SetUpgradingShipyard = new DelegateCommand(ExecuteSetUpgradingShipyard); SetCanBuildShipyard = new DelegateCommand(ExecuteSetCanBuildShipyard); AddCaptain = new DelegateCommand(ExecuteAddCaptain); CaptainUIEventHandler = new CustomDelegateCommand(ExecuteCaptainUIEventHandler, o => true); BoatUIEventHandler = new CustomDelegateCommand(ExecuteBoatUIEventHandler, o => true); CrewBoatUIEventHandler = new CustomDelegateCommand(ExecuteCrewBoatUIEventHandler, o => true); _eventAggregator.GetEvent <NewFiefLoadedEvent>().Subscribe(ExecuteNewFiefLoadedEvent); }
public InternalAppsController(ILogService loggerService, IUserService userService, IUnitOfWork unitOfWork, ISouploadService docService, IWkflowdefService wkflowdefService, IOrgService orgService, IWkflowinstanceService wkflowinstanceService, IPortService portService, IPortsettingService portsettingService, IOrgdoctypService orgdoctypService, IMessageService messageService, IMessageuserService messageuserService, IOrgdoctypmonthService orgdoctypmonthService, IMonthService monthService, IOrgdoctypdailyuploadService orgdoctypdailyuploadService, IOrgmonthcommitmentService orgmonthcommitmentService) { this._LoggerService = loggerService; this._IUserService = userService; this._IDocService = docService; this._UnitOfWork = unitOfWork; this._IWkflowdefService = wkflowdefService; this._IOrgService = orgService; this._IWkflowinstanceService = wkflowinstanceService; this._IPortService = portService; this._IPortsettingService = portsettingService; this._IOrgdoctypService = orgdoctypService; this._IMessageService = messageService; this._IMessageuserService = messageuserService; this._IOrgdoctypmonthService = orgdoctypmonthService; this._IMonthService = monthService; this._IOrgdoctypdailyuploadService = orgdoctypdailyuploadService; this._IOrgmonthcommitmentService = orgmonthcommitmentService; }
public CountryController(ICountryService countryService, IPortService portService, IStateProvinceService stateProvinceService, ILocalizationService localizationService) { this.countryService = countryService; this.portService = portService; this.stateProvinceService = stateProvinceService; this.localizationService = localizationService; }
public LibEncode(IUserSettingService userSettingService, ILogInstanceManager logInstanceManager, int encodeCounter, IPortService portService) { this.userSettingService = userSettingService; this.logInstanceManager = logInstanceManager; this.encodeCounter = encodeCounter; this.portService = portService; this.encodeTaskFactory = new EncodeTaskFactory(this.userSettingService); }
public Port VAbbrevation(Port port, IPortService _portService) { if (String.IsNullOrEmpty(port.Abbrevation) || port.Abbrevation.Trim() == "") { port.Errors.Add("Abbrevation", "Tidak boleh kosong"); } return(port); }
public LibEncode(IHbFunctionsProvider hbFunctionsProvider, IUserSettingService userSettingService, ILogInstanceManager logInstanceManager, int encodeCounter, IPortService portService) : base(userSettingService) { this.userSettingService = userSettingService; this.logInstanceManager = logInstanceManager; this.hbFunctionsProvider = hbFunctionsProvider; this.encodeCounter = encodeCounter; this.portService = portService; }
public PortStore( IMemoryCache cache, IPortService service, IGraphQLService graphQLService) : base(cache, service, graphQLService) { Key = Cache.Ports; Method = Queries.Ports.Item1; Query = Queries.Ports.Item2; }
public LibEncode(IHbFunctionsProvider hbFunctionsProvider, IUserSettingService userSettingService, ILogInstanceManager logInstanceManager, int encodeCounter, IPortService portService) : base(userSettingService) { this.userSettingService = userSettingService; this.logInstanceManager = logInstanceManager; this.hbFunctionsProvider = hbFunctionsProvider; this.encodeCounter = encodeCounter; this.portService = portService; this.encodeTaskFactory = new EncodeTaskFactory(this.userSettingService, hbFunctionsProvider.GetHbFunctionsWrapper()); }
public PlatformAuthController(ILogService loggerService, IUserService userAccountService, IPortService portalService, IPortuserService portalUserService, IUnitOfWork unitOfWork)//, ISessionService sessionService,ISessionTypeService sessionTypeService { this._LoggerService = loggerService; this._IUserService = userAccountService; this._IPortalService = portalService; this._IPortalUserService = portalUserService; //this._ISessionService = sessionService; this._UnitOfWork = unitOfWork; //this._ISessionTypeService = sessionTypeService; }
public Port VName(Port port, IPortService _portService) { if (String.IsNullOrEmpty(port.Name) || port.Name.Trim() == "") { port.Errors.Add("Name", "Tidak boleh kosong"); } else if (_portService.IsNameDuplicated(port)) { port.Errors.Add("Name", "Tidak boleh diduplikasi"); } return(port); }
public PlatformAdminController(ILogService loggerService, IUserService userService, IPortService portalService, IPortuserService portalUserService, IUnitOfWork unitOfWork, IOrgService orgService, IOrgtypService orgtypServicer, IAuthrolService authrolService) { this._LoggerService = loggerService; this._IUserService = userService; this._IPortalService = portalService; this._IPortalUserService = portalUserService; this._UnitOfWork = unitOfWork; this._IOrgService = orgService; this._IOrgtypServicer = orgtypServicer; this._IAuthrolService = authrolService; }
public Port VObject(Port port, IPortService _portService) { Port oldport = _portService.GetObjectById(port.Id); if (oldport == null) { port.Errors.Add("Generic", "Invalid Data For Update"); } else if (!VOffice(port.OfficeId, oldport.OfficeId)) { port.Errors.Add("Generic", "Invalid Data For Update"); } return(port); }
public QueueService(IUserSettingService userSettingService, ILog logService, IErrorService errorService, ILogInstanceManager logInstanceManager, IHbFunctionsProvider hbFunctionsProvider, IPortService portService) { this.userSettingService = userSettingService; this.logService = logService; this.errorService = errorService; this.logInstanceManager = logInstanceManager; this.hbFunctionsProvider = hbFunctionsProvider; this.portService = portService; // If this is the first instance, just use the main queue file, otherwise add the instance id to the filename. this.queueFile = string.Format("{0}{1}.json", QueueRecoveryHelper.QueueFileName, GeneralUtilities.ProcessId); this.allowedInstances = this.userSettingService.GetUserSetting <int>(UserSettingConstants.SimultaneousEncodes); this.processIsolationEnabled = this.userSettingService.GetUserSetting <bool>(UserSettingConstants.ProcessIsolationEnabled); }
public Port VCreateObject(Port port, IPortService _portService, ICityLocationService _citylocationservice) { VName(port, _portService); if (!isValid(port)) { return(port); } VAbbrevation(port, _portService); if (!isValid(port)) { return(port); } VCityLocation(port, _citylocationservice); if (!isValid(port)) { return(port); } return(port); }
public LookupOrchestra(ICountryService countryService, ICurrencyService currencyService, ICustomerTypeService customerTypeService, IDespatchService despatchService, IPorterageService porterageService, IPortService portService, IPackWtUnitService packWtUnitService, IPurchaseChargeTypeService purchaseChargeTypeService, IPurchaseTypeService purchaseTypeService, ITransactionTaxLocationService transactionTaxLocationService, IvwPermissionDetailService permissionDetailService, ICompanyService companyService, IDivisionService divisionService, IDepartmentService departmentService, ISetupGlobalService setupGlobalService, ISetupLocalService setupLocalService) { _countryService = countryService; _currencyService = currencyService; _customerTypeService = customerTypeService; _despatchService = despatchService; _packWtUnitService = packWtUnitService; _portService = portService; _porterageService = porterageService; _purchaseChargeTypeService = purchaseChargeTypeService; _purchaseTypeService = purchaseTypeService; _setupGlobalService = setupGlobalService; _setupLocalService = setupLocalService; _transactionTaxLocationService = transactionTaxLocationService; _permissionDetailService = permissionDetailService; _companyService = companyService; _divisionService = divisionService; _departmentService = departmentService; }
public StaticPreviewViewModel(IScan scanService, IUserSettingService userSettingService, IErrorService errorService, ILog logService, ILogInstanceManager logInstanceManager, IPortService portService) { this.scanService = scanService; this.selectedPreviewImage = 1; this.Title = Resources.Preview; this.PreviewNotAvailable = true; // Live Preview this.userSettingService = userSettingService; this.errorService = errorService; this.logService = logService; this.logInstanceManager = logInstanceManager; this.portService = portService; this.Title = "Preview"; this.Percentage = "0.00%"; this.PercentageValue = 0; this.Duration = 30; this.CanPlay = true; this.useSystemDefaultPlayer = userSettingService.GetUserSetting <bool>(UserSettingConstants.DefaultPlayer); this.showPictureSettingControls = userSettingService.GetUserSetting <bool>(UserSettingConstants.PreviewShowPictureSettingsOverlay); this.Duration = userSettingService.GetUserSetting <int>(UserSettingConstants.LastPreviewDuration); }
public PortOrchestra(IPortService portService) { _portService = portService; }
public ActiveJob(QueueTask task, IHbFunctionsProvider hbFunctionsProvider, IUserSettingService userSettingService, ILogInstanceManager logInstanceManager, int jobId, IPortService portService) { this.job = task; this.encodeService = new LibEncode(hbFunctionsProvider, userSettingService, logInstanceManager, jobId, portService); }
public PortalController(ILogService loggerService, IPortService portService) { this._loggerService = loggerService; this._PortService = portService; }
public BookingViewModel(IPortService portService) { _portService = portService; Title = "Booking"; }
public static IEncodeInstance GetEncodeInstance(int verbosity, HBConfiguration configuration, ILog logService, IUserSettingService userSettingService, IPortService portService) { lock (ProcessingLock) { if (!HandBrakeUtils.IsInitialised()) { throw new Exception("Please call Init before Using!"); } IEncodeInstance newInstance; if (userSettingService.GetUserSetting <bool>(UserSettingConstants.ProcessIsolationEnabled) && Portable.IsProcessIsolationEnabled()) { newInstance = new RemoteInstance(logService, userSettingService, portService); } else { if (encodeInstance != null && !encodeInstance.IsRemoteInstance) { encodeInstance.Dispose(); encodeInstance = null; } newInstance = new HandBrakeInstance(); HandBrakeUtils.SetDvdNav( !userSettingService.GetUserSetting <bool>(UserSettingConstants.DisableLibDvdNav)); encodeInstance = newInstance; } newInstance.Initialize(verbosity, noHardware); return(newInstance); } }
public RemoteInstance(ILog logService, IUserSettingService userSettingService, IPortService portService) { this.logService = logService; this.userSettingService = userSettingService; this.portService = portService; }
public Station() { _portService = new PortService(); _callService = new CallService(); _terminalService = new TerminalService(); }
public StaticPreviewViewModel(IScan scanService, IUserSettingService userSettingService, IErrorService errorService, ILog logService, ILogInstanceManager logInstanceManager, IPortService portService) { this.scanService = scanService; this.selectedPreviewImage = 1; this.Title = Resources.Preview; this.PreviewNotAvailable = true; // Live Preview this.userSettingService = userSettingService; this.errorService = errorService; this.encodeService = new LibEncode(userSettingService, logInstanceManager, 0, portService); // Preview needs a separate instance rather than the shared singleton. This could maybe do with being refactored at some point this.Title = "Preview"; this.Percentage = "0.00%"; this.PercentageValue = 0; this.Duration = 30; this.CanPlay = true; this.useSystemDefaultPlayer = userSettingService.GetUserSetting <bool>(UserSettingConstants.DefaultPlayer); this.Duration = userSettingService.GetUserSetting <int>(UserSettingConstants.LastPreviewDuration); this.previewRotateFlip = userSettingService.GetUserSetting <bool>(UserSettingConstants.PreviewRotationFlip); this.NotifyOfPropertyChange(() => this.previewRotateFlip); // Don't want to trigger an Update, so setting the backing variable. }