Esempio n. 1
0
        private void kháchHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmKhachHang frm = new FrmKhachHang();

            this.Hide();
            frm.Show();
        }
        private void btnThemKhach_Click(object sender, EventArgs e)
        {
            FrmKhachHang kh = new FrmKhachHang();

            kh.ShowInTaskbar = false; // Hide windows icon in taskbar
            kh.ShowDialog();
        }
Esempio n. 3
0
        private void btnKhachHang_ItemClick(object sender, ItemClickEventArgs e)
        {
            /* Display KhachHang form in tabbed */
            Form hd = CheckForm(typeof(FrmKhachHang));

            if (hd != null)
            {
                hd.Activate();
            }
            else
            {
                var form = new FrmKhachHang {
                    MdiParent = this
                };
                form.Show();
            }
        }