private void DeleteUCSite(UCSite uc) { if (panSites.Controls.Contains(uc)) panSites.Controls.Remove(uc); }
private void DeleteUCSite(UCSite uc) { if (panSites.Controls.Contains(uc)) { panSites.Controls.Remove(uc); } }
private void AddSite(Site site) { UCSite uc = new UCSite(); uc.WebSite = site; uc.Dock = DockStyle.Top; uc.DeleteHandler = DeleteUCSite; uc.Show(); panSites.Controls.Add(uc); }