private void Form1_Shown(object sender, EventArgs e) { bm = new Bitmap(Width, Height); //param.file = "test1"; param.file = "cunami2"; param.gx = -0.01; param.reinit = true; reinitcallback = new MyCallbackDelegate(ReInit); formparam = new FormParam(); formparam.Show(); formparam.InitParam("Demos", reinitcallback); //formparam.Left = 500; gform = Graphics.FromHwnd(this.Handle); g = Graphics.FromImage(bm); // instrument.zoom = true; // instrument.zoomx = formparam.sc instrument.zoomx; timer1.Enabled = false; ReceiveWorkerThread.WorkerReportsProgress = true; ReceiveWorkerThread.RunWorkerAsync(); }