Inheritance: System.Windows.Forms.Form
示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (_frmHelp != null)
     {   //help window is open
         _frmHelp.Focus();
     }
     else
     {   //its not open...
         _frmHelp             = new frm_help_rules();
         _frmHelp.FormClosed += (o, ev) => _frmHelp = null;
         _frmHelp.Show();
     }
 }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (_frmHelp != null)
     {   //help window is open
         _frmHelp.Focus();
     }
     else
     {   //its not open...
         _frmHelp = new frm_help_rules();
         _frmHelp.FormClosed += (o, ev) => _frmHelp = null;
         _frmHelp.Show();
     }
 }