Exemplo n.º 1
0
        public void autocmplt()
        {
            DrugDescription ds   = gnr.DrugDescriptions.Create();
            var             polp = gnr.DrugDescriptions;

            foreach (var p in polp)
            {
                data.Add(p.DrugName);
            }
            drugname.MaskBox.AutoCompleteSource       = AutoCompleteSource.CustomSource;
            drugname.MaskBox.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            drugname.MaskBox.AutoCompleteCustomSource = data;
        }
Exemplo n.º 2
0
        public void drugauto()
        {
            DrugDescription ds = new DrugDescription();

            ds = gnr.DrugDescriptions.Create();
            var usw = gnr.DrugDescriptions;

            foreach (var g in usw)
            {
                data.Add(g.DrugName);
            }
            medicinename.MaskBox.AutoCompleteSource       = AutoCompleteSource.CustomSource;
            medicinename.MaskBox.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            medicinename.MaskBox.AutoCompleteCustomSource = data;
        }