CapDemo.GUI.User_Controls.Question_ShortAnswer_1.Question_ShortAnswer_1_Load C# (CSharp) Method

Question_ShortAnswer_1_Load() private method

private Question_ShortAnswer_1_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void Question_ShortAnswer_1_Load(object sender, EventArgs e)
        {
            txt_ContentQuestion.Text = "";
            txt_AnswerContent.Text = "";
            cmb_Catalogue.Items.Clear();
            cmb_Catalogue.Text = "";
            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++)
                {
                    this.cmb_Catalogue.Items.Add(CatList.ElementAt(i).NameCatalogue);
                }
            if (cmb_Catalogue.Items.Count > 0)
            {
                cmb_Catalogue.SelectedIndex = 0;
            }
            txt_Date.Text = DateTime.Now.ToString("d");
        }