Example #1
0
        private void IbtnRefresh_Click(object sender, EventArgs e)
        {
            txtSearch.Clear();
            List <Service> services = serviceLog.ReadAll();

            LoadRowsDataTable(services: services);
        }
Example #2
0
        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);
        }