예제 #1
0
 private void InDBToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (DisplayFromDB == null)
     {
         DisplayFromDB             = new DisplayAllFromDB();
         DisplayFromDB.MdiParent   = this;
         DisplayFromDB.FormClosed += DisplayFromDB_FormClosed;
         DisplayFromDB.Show();
     }
     else
     {
         DisplayFromDB.Activate();
     }
 }
예제 #2
0
 private void DisplayFromDB_FormClosed(object sender, FormClosedEventArgs e)
 {
     DisplayFromDB = null;
 }