Пример #1
0
        static void TestRun()
        {
            String testconn = "Data Source=TK13\\SERVER01;Initial Catalog=QLDSV;Persist Security Info=True;User ID=hongson;Password=123";

            Program.connstr = testconn;
            Program.conn    = new SqlConnection(testconn);
            FormLop         = new frmLop();
            Application.Run(FormLop);
        }
Пример #2
0
        private void btnLop_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.CheckExists(typeof(frmLop));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmLop f = new frmLop();
                f.MdiParent = this;
                f.Show();
            }
        }