Пример #1
0
        private void btnNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmPhieuNhap PN = null;

            if (PN == null || PN.IsDisposed)
            {
                PN = new frmPhieuNhap();
            }
            PN.ShowDialog();
        }
Пример #2
0
        private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = this.checkExist(typeof(frmPhieuNhap));

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