private void btnTongHop_Click(object sender, EventArgs e) { string MaNhanVien = ((DataRowView)cboNhanVien.SelectedItem).Row["MaNhanVien"].ToString().Trim(); if (MaNhanVien == null || MaNhanVien == "") { MaNhanVien = "TatCa"; } frmDoanhThuTheoNVBH f = new frmDoanhThuTheoNVBH(dtpTuNgay.Value, dtpDenNgay.Value, MaNhanVien); f.Show(); }
public frmDoanhThuTheoNVBH showFormDoanhThuTheoNVBH() { frmDoanhThuTheoNVBH F = (frmDoanhThuTheoNVBH)getForm("frmDoanhThuTheoNVBH"); if (F == null) { F = new frmDoanhThuTheoNVBH(); F.Show(); } F.MdiParent = this; F.WindowState = FormWindowState.Maximized; F.Activate(); return(F); }