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());
}
}