Example #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if((pr!=null)&&(pr.HasExited==true ))
     {
         timer1.Enabled = false;
         imgsimform isf1 = new imgsimform("Echo");
         isf1.Show();
         imgsimform isf2 = new imgsimform("BpImage");
         isf2.Show();
         pr.Dispose();
     }
 }
Example #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if ((pr != null) && (pr.HasExited == true))
            {
                timer1.Enabled = false;

                string mode;

                if (comboBox1.SelectedIndex == 0)
                    mode = "聚束";
                else
                    mode = "条带";

                this.Text = "成像仿真-正在生成图像,请稍候";
                pr.Dispose();
                imgsimform isf1 = new imgsimform("Echo", mode);
                isf1.Show();
                imgsimform isf2 = new imgsimform("BpImage", mode);
                isf2.Show();

                button1.Enabled = true;

                mybmp = isf2.ResultBMP;

                listBox1.Items.Clear();
                listBox1.Items.AddRange(textBox1.Text.Split(new string[1] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries));


                listBox1.Enabled=true;

                listBox1.SelectedIndex = 0;
                this.pictureBox1.Image = getselectpointbmp(0);//裁剪原始图像

                button3.Enabled = true;

                this.Text = "成像仿真";

                if (File.Exists(Application.StartupPath + "\\tmpbpconf.txt"))
                {
                    File.Delete(Application.StartupPath + "\\tmpbpconf.txt");
                }
            }
        }
Example #3
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if ((pr != null) && (pr.HasExited == true))
            {
                timer1.Enabled = false;
                
                string mode;

                if(comboBox1.SelectedIndex==0)
                    mode="聚束";
                else
                    mode="条带";

                this.Text = "成像仿真-正在生成图像,请稍候";
                pr.Dispose();
                imgsimform isf1 = new imgsimform("Echo",mode);
                isf1.Show();
                imgsimform isf2 = new imgsimform("BpImage",mode);
                isf2.Show();
                
                button1.Enabled = true;



                mybmp = isf2.ResultBMP;
                this.pictureBox1.Image = mybmp;

                button3.Enabled = true;
                mymode = 1;
                this.Text = "成像仿真";
            }
        }