Beispiel #1
0
        public SupplierManagementUserCtrl(string staffID)
        {
            InitializeComponent();

            this.staffID = staffID;

            List <Supplier> allSauppliers = sda.getAllSuppliers(conn);
            AutoCompleteStringCollection supplierIdCollection = new AutoCompleteStringCollection();

            foreach (Supplier supplier in allSauppliers)
            {
                supplierIdCollection.Add(supplier.getSupplierID());
            }
            searchSupplierIdTextBox.AutoCompleteCustomSource = supplierIdCollection;
        }