Example #1
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            lblStatus2.Text = "";
            _kindle         = new KindleFinder();
            if (!_kindle.IsFound)
            {
                ShowError(_locale.GetString("DeviceNotFound"));
            }
            else
            {
                lblStatus.Text      = _locale.GetString("DeviceFound", _kindle.Mount);
                lblStatus.ForeColor = Color.DarkSlateGray;
            }

            _converter = new ConverterHelper();
            if (!_converter.IsFound)
            {
                ShowError(_locale.GetString("ConverterNotFound"));
            }

            if (_kindle.IsFound && _converter.IsFound)
            {
                AllowDrop = true;
                _converterThreadRunning = true;
                _converterThread        = new Thread(new ThreadStart(ConverterThreadProc));
                _converterThread.Start();
            }
        }