private void btn_ThongTinCaNhan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form_ThongTinCaNhan form = new Form_ThongTinCaNhan();

            form.MdiParent = this;
            form.Show();
        }
Example #2
0
        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form_ThongTinCaNhan form = new Form_ThongTinCaNhan();

            if (f_ThongTinCaNhan == true)
            {
                form.MdiParent = this;
                form.Show();
                f_ThongTinCaNhan = false;
            }
            else
            {
                foreach (XtraForm item in this.MdiChildren)
                {
                    if (item is Form_ThongTinCaNhan)
                    {
                        item.Activate();
                    }
                }
            }
        }