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