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;
        }
        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;
        }