private void Form1_Shown(object sender, EventArgs e) { isRunning = true; pipeline = new MyPipeline(this, pictureBox1); pipeline.LoopFrames(); }