Beispiel #1
0
 private void ToolBarToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (FrmSelectReportFormat == null)
     {
         FrmCaptureDevice                 = new frmCaptureDevice();
         FrmCaptureDevice.MdiParent       = this;
         FrmCaptureDevice.ClientSize      = new System.Drawing.Size(2000, 800);
         this.WindowState                 = FormWindowState.Maximized;
         FrmCaptureDevice.FormBorderStyle = FormBorderStyle.None;
         FrmCaptureDevice.ControlBox      = false;
         FrmCaptureDevice.MaximizeBox     = false;
         FrmCaptureDevice.MinimizeBox     = false;
         FrmCaptureDevice.ShowIcon        = false;
         FrmCaptureDevice.FormClosed     += FrmCaptureDevice_FormClosed;;;
         FrmCaptureDevice.Dock            = DockStyle.Fill;
         FrmCaptureDevice.Show();
     }
     else
     {
         FrmCaptureDevice.Activate();
     }
 }
Beispiel #2
0
 private void FrmCaptureDevice_FormClosed(object sender, FormClosedEventArgs e)
 {
     FrmCaptureDevice = null;
 }