Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
        }