Esempio n. 1
0
        private void InitializeCombo()
        {
            ELibraryDocumentBL  docBL      = new ELibraryDocumentBL();
            ELibraryPurchasedBL purchaseBL = new ELibraryPurchasedBL();
            ELibraryUserBL      userBL     = new ELibraryUserBL();

            //lblRegUsers.Content = userBL.GetRegisteredUserCountBL().ToString() + " Registered Users!!";
            //lblSubUsers.Content = userBL.GetSubscribedUserCountBL().ToString() + " Subscribed Users!!";
            // lblSoldDocs.Content = purchaseBL.GetPurchasedCountBL().ToString() + " Documents Sold!!";

            cboDiscipline.Items.Clear();

            cboDocumentType.Items.Clear();
            //cbDocTypeUpd.Items.Clear();
            cbnDocumentID.Items.Clear();


            foreach (Disciplines disc in docBL.GetAllDisciplinesBL())
            {
                cboDiscipline.Items.Add(disc.DisciplineName.ToString());
            }
            foreach (DocumentTypeDetails docType in docBL.GetAllDocumentTypesBL())
            {
                cboDocumentType.Items.Add(docType.DocumentTypeName.ToString());
            }
            if (docBL.GetAllDocumentIDBL() != null)
            {
                foreach (int i in docBL.GetAllDocumentIDBL())
                {
                    cbnDocumentID.Items.Add(Convert.ToString(i));
                }
            }
        }