private void Filddepartments(bool?active) { this.departments.Clear(); var rdg = new RDGs.RDGtblDepartment(this.session.ConnectionString); foreach (var item in rdg.Get(active)) { this.departments.Add(item); } }
public List <string> ListOfDepartments() { var list = new List <string>(); var rdg = new RDGs.RDGtblDepartment(this.session.ConnectionString); foreach (var item in rdg.Get(true)) { list.Add("#" + item.Deparment + " " + item.CompanyName); } return(list); }