private void btnCFG_Click(object sender, EventArgs e) { if (Connect(false)) { frmConfig frm = new frmConfig(); frm.ShowDialog(this); } }