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