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