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