/// <summary> /// Populate the data grid with information about engines with less power than given /// </summary> private void PopulateDataGridViewGetEnginesWithLowerPower() { dataGridView.Rows.Clear(); EngineBusiness engineBusiness = new EngineBusiness(); int.TryParse(txtGet.Text, out int power); var enginesList = engineBusiness.GetEnginesWithLowerPower(power); DataPopulator(enginesList); }