Ejemplo n.º 1
0
 private void scannerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (scannerBox == null || scannerBox.Text == "")
     {
         scannerBox           = new ScannerBox(this);
         scannerBox.MdiParent = this;
         scannerBox.Dock      = DockStyle.Fill;
         scannerBox.Show();
     }
     else if (CheckOpened(scannerBox.Text))
     {
         scannerBox.WindowState = FormWindowState.Normal;
         scannerBox.Dock        = DockStyle.Fill;
         scannerBox.Show();
         scannerBox.Focus();
     }
 }
Ejemplo n.º 2
0
 public MyThreadClass(ScannerBox myForm)
 {
     myFormControl1 = myForm;
 }