コード例 #1
0
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) //tym bede zatrzymywal petle
        {
            // = bpmbar.Value;
            //int i;

            int ms = ((60000 / 128) / 4);
            // progressBar1.Value = graj1.progress;
            play graj1 = new play();

            //graj1.bpm1 = bpmbar.Value;
            graj1.sampel = plik;
            graj1.tab    = tab;

            graj1.ms1 = 1;
            //graj1.glosnosc = trackBar1.Value;


            //graj1.progress = progressBar1.Value;


            while (stop != 1)
            {
                graj1.graj();
            }
        }
コード例 #2
0
        private void backgroundWorker3_DoWork(object sender, DoWorkEventArgs e)
        {
            play graj3 = new play();

            graj3.sampel = plik3;
            graj3.tab    = tab3;

            graj3.ms1 = ms * 2;
            //graj2.glosnosc = trackBar2.Value;
            //progressBar1.Value = 0;
            //graj2.progress = progressBar1.Value;
            while (stop != 1)
            {
                graj3.graj();
            }
        }
コード例 #3
0
        private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
        {
            play graj2 = new play();

            graj2.sampel = plik2;
            graj2.tab    = tab2;

            graj2.ms1 = ms;
            //graj2.glosnosc = trackBar2.Value;
            //var progressBar1.Value = 0;
            //graj2.progress = progressBar1.Value;
            while (stop != 1)
            {
                graj2.graj();
            }
        }