예제 #1
0
        private void BtnPhieuNhap_Click(object sender, EventArgs e)
        {
            Form frm = this.checkIfExist(typeof(formPhieuNhap));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                formPhieuNhap f = new formPhieuNhap();
                f.Show();
            }
        }
예제 #2
0
        private void BtnPhieuNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.checkIfExist(typeof(formPhieuNhap));

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