private void IbtnRefresh_Click(object sender, EventArgs e) { txtSearch.Clear(); List <Service> services = serviceLog.ReadAll(); LoadRowsDataTable(services: services); }
private AutoCompleteStringCollection AddAutoCompleteService() { AutoCompleteStringCollection collection = new AutoCompleteStringCollection(); List <Service> services = serviceLog.ReadAll(); foreach (var s in services) { collection.Add(s.Service_code + " " + s.Service_activity); } return(collection); }