Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (!ClsBLL.CheckFormIsOpen("frmWork"))
     {
         frmWork fw = new frmWork();
         fw.Show();
     }
     else
     {
         Form frm = Application.OpenForms["frmWork"];
         frm.Focus();
     }
 }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            frmWork fw = new frmWork();

            fw.Show();
        }