示例#1
0
 private void StripMenuItem_Connection_Click(object sender, EventArgs e)
 {
     if (fc == null) // open single form copy
     {
         fc             = new Form_Connection();
         fc.FormClosed += new FormClosedEventHandler(Fc_FormClosed);
         fc.Show(this);
     }
     else
     {
         fc.Activate(); // activate form if it is already opened
     }
 }
示例#2
0
 private void Fc_FormClosed(object sender, FormClosedEventArgs e)
 {
     log.Trace("Form {0} closed.", fc.Text);
     fc = null; // set open form flag to null
 }