Пример #1
0
 private void TestsBackgroundWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     _audio = new Audio();
     TestsBackgroundWorker.ReportProgress(1);
     _mic = new Microphone();
     TestsBackgroundWorker.ReportProgress(2);
     _capture = new Camera();
     TestsBackgroundWorker.ReportProgress(3);
 }
Пример #2
0
        //  Stopwatch stopwatch = new Stopwatch();

        public MainWindow()
        {
            InitializeComponent();

            SpecBackgroundWorker.RunWorkerAsync();
            TestsBackgroundWorker.RunWorkerAsync();
            //  DriversBackgroundWorker.RunWorkerAsync();

            if (_spec.BatteryCharge() != "n/a")
            {
                ChargeTimer.Enabled = true;
            }
            MySql database = new MySql("127.0.0.1", "3310", "cuser", "msasia", "log_instalacja");

            MessageBox.Show(database.CheckConnection().ToString());
        }