Ejemplo n.º 1
0
        public Grabber(IAudiobookService service, ICustomLogger logger, IAudiobookRepository db, OwnRadioClient client)
        {
            if (!Directory.Exists(dirPath))
            {
                Directory.CreateDirectory(dirPath);
            }

            this.logger  = logger;
            this.service = service;
            this.db      = db;
            this.client  = client;
        }
Ejemplo n.º 2
0
        public AudiobookDownloader()
        {
            InitializeComponent();

            logger  = new CustomLogger(textLog);
            db      = new SqLiteAudiobookRepository();
            service = new AbooksService(logger, baseUrl);
            client  = new OwnRadioClient(logger);
            grabber = new Grabber(service, logger, db, client);

            if (Boolean.Parse(ConfigurationManager.AppSettings["IsUseProxy"]))
            {
                IsProxy.Checked = true;
            }

            proxy.Text = ConfigurationManager.AppSettings["ProxyIp"];
        }