/// <summary> /// Populate the data grid with information about workers with salary higher than given /// </summary> private void PopulateDataGridViewGetWorkersWithHigherSalary() { dataGridView.Rows.Clear(); WorkerBusiness workerBusiness = new WorkerBusiness(); decimal.TryParse(txtGet.Text, out decimal salary); var workersList = workerBusiness.GetWorkersWithHigherSalary(salary); DataPopulator(workersList); }