예제 #1
0
        private void btnLapQDXPHC_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.Hide();
            frmQDXPHC frm = new frmQDXPHC();

            frm.ShowDialog();
            frm.Dispose();
            this.Show();
        }
예제 #2
0
        private void barLapQDXPHC_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //Form frm = this.KiemTraTonTai(typeof(frmQDXPHC));
            //if (frm != null) { frm.Activate(); }
            //else
            //{
            //    frmQDXPHC f = new frmQDXPHC();
            //    f.MdiParent = this;
            //    f.Show();
            //}
            frmQDXPHC frm = new frmQDXPHC();

            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
        }