예제 #1
0
        private void PopProductToComboBox(ComboBox com, TestingSpecificationGroup testgroup)
        {
            IList <MasterProduct> list = DataRepository.GetAllProductByClassOfTest(ClassOfMorbidityTestEnum.RapidTest.ToString(), testgroup.ToString());

            list.Insert(0, new MasterProduct()
            {
                ProductName = "---NONE---"
            });

            com.DisplayMember = "ProductName";
            com.ValueMember   = "Id";
            com.DataSource    = list;
            com.SelectedIndex = 0;
        }
예제 #2
0
        private void PopProductToComboBox(ComboBox com, TestingSpecificationGroup testgroup)
        {
            IList<MasterProduct> list = DataRepository.GetAllProductByClassOfTest(ClassOfMorbidityTestEnum.RapidTest.ToString(), testgroup.ToString());
            list.Insert(0, new MasterProduct() { ProductName = "---NONE---" });

            com.DisplayMember = "ProductName";
            com.ValueMember = "Id";
            com.DataSource = list;
               com.SelectedIndex = 0;
        }