DesktopHelper.UI.ConfigForm.InitiWebsite C# (CSharp) Method

InitiWebsite() private method

private InitiWebsite ( ) : void
return void
        private void InitiWebsite()
        {
            try
            {
                for (int i = 0; i < 16; i++)
                {
                    foreach (Control con in panelWebsite.Controls)
                    {
                        iWebsite website = con as iWebsite;
                        if (website.TabIndex == (i+1))
                        {
                            website.DeleteWebsiteHandlor +=new iWebsite.DeleteWebsiteHandler(DeleteWebsite);
                            _iWebsite[i] = website;
                            break;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                log.WriteLog(ex.ToString());
            }
        }