CapDemo.GUI.User_Controls.ImportQuestionToQuestionStore.ImportQuestionToQuestionStore_Load C# (CSharp) Method

ImportQuestionToQuestionStore_Load() private method

private ImportQuestionToQuestionStore_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void ImportQuestionToQuestionStore_Load(object sender, EventArgs e)
        {
            this.Dock = DockStyle.Fill;
            CatalogueBL CatBL = new CatalogueBL();
            List<DO.Catalogue> CatList;
            CatList = CatBL.GetCatalogue();
            if (CatList != null)
                for (int i = 0; i < CatList.Count; i++)
                {
                    if (CatList.ElementAt(i).NameCatalogue != NameCat)
                    {
                        this.cmb_Catalogue.Items.Add(CatList.ElementAt(i).NameCatalogue);
                    }
                }
        }