private void FildWorkers(bool?active) { this.workers.Clear(); var rgd = new RDGs.RDGtblWorkers(this.session.ConnectionString); foreach (var item in rgd.Get(active)) { this.workers.Add(item); } }
public List <string> ListOfWorkers() { List <string> list = new List <string>(); var rgd = new RDGs.RDGtblWorkers(this.session.ConnectionString); foreach (var item in rgd.Get(true)) { list.Add("#" + item.WorkNo.ToString() + " - " + item.Name + " " + item.Surname); } return(list); }