Esempio n. 1
0
        private void employeeModuleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string        ConnType;
            SqlConnection sconn;

            if (!isOnline)
            {
                sconn    = SQLCLient;
                ConnType = "client";
            }
            else
            {
                sconn    = SQLServer;
                ConnType = "server";
            }

            frmEmployeeMaintenance emp = new frmEmployeeMaintenance();

            emp.SQLCON    = sconn;
            emp.MdiParent = this;
            emp.ConnType  = ConnType;
            if (!cf.isOpenChildForm(emp.Name))
            {
                emp.Show();
                if (emp.isClose)
                {
                    emp.Close();
                }
            }
        }