internal void AssignServices(IPersistence persistence, ConnectionManager connectionManager, FavoriteIcons icons) { this.connectionManager = connectionManager; this.favoriteIcons = icons; var iconsBuilder = new ProtocolImageListBuilder(icons.GetProtocolIcons); iconsBuilder.Build(this.treeIcons); this.generalPanel1.AssignServices(persistence, connectionManager); this.groupsPanel1.AssignPersistence(persistence); this.protocolOptionsPanel1.CredentialsFactory = new GuardedCredentialFactory(persistence); }
private int BuildImages(string extraimage) { var builder = new ProtocolImageListBuilder(this.CreateTwoIcons); using (var imageList = new ImageList()) { imageList.Images.Add(extraimage, this.testImageA); //content is irrelevant here builder.Build(imageList); return(imageList.Images.Count); } }