private void btnShowAllReport_Click(object sender, EventArgs e) { LogDAL logDAL = new LogDAL(); if (CurrentUser.Type == 2) { logDAL.GetGridReport(dgvReport); } else { logDAL.GetGridReport(dgvReport, CurrentUser.Email); } }
public ReportControl(Form form) : this() { _loginControl = form; LogDAL logDAL = new LogDAL(); if (CurrentUser.Type == 2) { logDAL.GetGridReport(dgvReport); } else { logDAL.GetGridReport(dgvReport, CurrentUser.Email); } GetComboBoxItems(); }