Example #1
0
        private void btnBanHang_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmService));

            if (f != null)
            {
                f.Activate();
            }
            else
            {
                f           = new frmService();
                f.MdiParent = this;
                f.Show();
            }
        }
Example #2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            Form f = IsActive(typeof(frmService));

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