Пример #1
0
 private void FileToDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (filetodb == null)
     {
         filetodb             = new FileToDB();
         filetodb.MdiParent   = this;
         filetodb.FormClosed += Filetodb_FormClosed;
         filetodb.Show();
     }
     else
     {
         filetodb.Activate();
     }
 }
Пример #2
0
 private void Filetodb_FormClosed(object sender, FormClosedEventArgs e)
 {
     filetodb = null;
 }