CapDemo.GUI.User_Controls.MoveQuestion.MoveQuestion_Load C# (CSharp) Method

MoveQuestion_Load() private method

private MoveQuestion_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void MoveQuestion_Load(object sender, EventArgs e)
        {
            this.Dock = DockStyle.Fill;
            CatalogueBL CatBL = new CatalogueBL();
            List<DO.Catalogue> CatList;
            CatList = CatBL.GetCatalogue();

            string[] BothID = IDCatIDQuestion.Trim().Split(' ');
            string[] IdC = new string[BothID.Length];
            IdQ = new string[BothID.Length];
            for (int i = 0; i < BothID.Length; i++)
            {
                string[] ID = BothID[i].Trim().Split('+');
                IdC[i] = ID[0].ToString();
                IdQ[i] = ID[1].ToString();
            }

            if (CatList != null)
                for (int j = 0; j < CatList.Count; j++)
                {
                    int count = 0;
                    for (int i = 0; i < IdC.Length; i++)
                    {
                        if (CatList.ElementAt(j).IDCatalogue != Convert.ToInt32(IdC[i].ToString()))
                        {
                            count++;
                        }
                    }
                    if (count == IdC.Length)
                    {
                        cmb_Catalogue.Items.Add(CatList.ElementAt(j).NameCatalogue);
                    }
                }
        }