private void btn_quayve_Click(object sender, EventArgs e) { this.Close(); FrmQLNhanVien ql = new FrmQLNhanVien(); ql.MdiParent = FrmChinh.ActiveForm; ql.Dock = DockStyle.Fill; ql.FormBorderStyle = FormBorderStyle.None; ql.StartPosition = FormStartPosition.CenterScreen; ql.Show(); }
private void nHÂNVIÊNToolStripMenuItem_Click(object sender, EventArgs e) { lsNDDTO = new LichSuNguoiDungDTO() { MAND = nvDangNhap.MAND, MANV = nvDangNhap.MANV, THOIGIAN = DateTime.Parse(DateTime.Now.ToString("dd/MM/yyy HH:mm")), SUKIEN = "Quản Lý Nhân Viên" }; bool kt = lsNDBUS.ThemLichSuNguoiDung(lsNDDTO); DongFrmCon(); f1 = new FrmQLNhanVien(); f1.MdiParent = this; f1.Dock = DockStyle.Fill; f1.Show(); }