示例#1
0
 public void Off()
 {
     if (LoadPictureBox.InvokeRequired)
     {
         LoadPictureBox.BeginInvoke(new Action(Off));
         return;
     }
     Close();
 }
示例#2
0
 public void On()
 {
     if (LoadPictureBox.InvokeRequired)
     {
         LoadPictureBox.BeginInvoke(new Action(On));
         return;
     }
     new Thread(() =>
     {
         ShowDialog();
     }).Start();
 }