public BrowseService(IControlsService controlsService, IEventAggregator eventAggregator, IScrapService scrapService, IFilingService fileService, IConnectionService connectionService, IAudioService audioService, IAppConfig config) { _config = config; _controlsService = controlsService; _scrapService = scrapService; _fileService = fileService; _connectionService = connectionService; _audioService = audioService; _eventAggregator = eventAggregator; if (Debugger.IsAttached) //save only for DEBUG { _audioTrialsLimit = 10; _torSearchesCaptchaLimit = 10; } else { _audioTrialsLimit = 3; _torSearchesCaptchaLimit = 2; } _eventAggregator.GetEvent <UpdateControlsEvent>().Subscribe(OnUpdateControls); }
public ButtonsService(IControlsService controlService, IFilingService fileService, IBrowseService browseService) { _controlsService = controlService; _fileService = fileService; _browseService = browseService; }
public MainWindowViewModel(IControlsService controlsService, IDialogService dialogService) { _dialogService = dialogService; _controlsService = controlsService; SwitchCommnad = new DelegateCommand(OnSwitchCommand); OpenDialogCommand = new DelegateCommand(OnOpenDialogCommand); }
public void Initialize() { _container = Booter.BootStrap(); var aggregator = _container.Resolve <Facade>(); _fileService = aggregator.FilesService; _controlsService = aggregator.ControlsService; }
public MainWindowViewModel(IControlsService controlsService) { _controlsService = controlsService; _log = new ParamsLogger(); SwitchCommnad = new DelegateCommand(OnSwitchCommand); Initialization = InitializeAsync(); }
public MainWindowViewModel(IControlsService controlsService, IObjectService objectService) { _controlsService = controlsService; _objectService = objectService; SwitchCommnad = new DelegateCommand(OnSwitchCommand); JedenCommand = new DelegateCommand(OnJedenCommnad); DwaCommand = new DelegateCommand(OnDwaCommnad); TrzyCommand = new DelegateCommand(OnTrzyCommnad); }
public MainWindowViewModel(IControlsService controlsService, IObserver1 observer1, IObserver2 observer2) { _controlsService = controlsService; _observer1 = new Observer1("name1"); _observer2 = new Observer2("name2"); SwitchCommnad = new DelegateCommand(OnSwitchCommand); ObserverCommand = new DelegateCommand(OnObserverCommand); InitProgram(); }
public MainWindowViewModel(IControlsService controlsService) { _controlsService = controlsService; SwitchCommnad = new DelegateCommand(OnSwitchCommand); CrashMeCommand = new DelegateCommand(OnCrashMeCommand); AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler); }
public MainWindowViewModel(IControlsService controlsService, ILuxaryCarBuilder luxaryCarBuilder, IMediumCarBuilder mediumCarBuilder, INormalCarBuilder normalCarBuilder) { _controlsService = controlsService; _luxuryCar = luxaryCarBuilder; _mediumCar = mediumCarBuilder; _normalCar = normalCarBuilder; SwitchCommnad = new DelegateCommand(OnSwitchCommand); Builder1Command = new DelegateCommand(OnBuilderLuxuryCommand); Builder2Command = new DelegateCommand(OnBuilderMediumCommand); Builder3Command = new DelegateCommand(OnBuilderNormalCommand); }
public Facade(IFilesService filesService, IControlsService controlsService) { FilesService = filesService; ControlsService = controlsService; }
public Facade(IFilesService fileServ, IControlsService contrServ) { FilesService = fileServ; ControlsService = contrServ; }
public UiControlsModel SwitchOn() { _controlsService = Facade.ControlsService; Controls = _controlsService.SwitchOn(); return(Controls); }
public MainWindowViewModel(IControlsService controlsService) { _controlsService = controlsService; SwitchCommnad = new DelegateCommand(OnSwitchCommand); }