internal void AssignServices(IPersistence persistence, FavoriteIcons favoriteIcons, ConnectionManager connectionManager) { this.persistence = persistence; this.connectionManager = connectionManager; var iconsBuilder = new ProtocolImageListBuilder(favoriteIcons.GetProtocolIcons); iconsBuilder.Build(this.imageListIcons); }
internal void LoadEvents(IPersistence persistence, FavoriteIcons favoriteIcons) { this.persistence = persistence; this.favoriteIcons = favoriteIcons; this.toolTipBuilder = new ToolTipBuilder(this.persistence.Security); var iconsBuilder = new ProtocolImageListBuilder(favoriteIcons.GetProtocolIcons); iconsBuilder.Build(this.protocolsImageList); this.LoadAll(); }
/// <summary> /// Dont call from constructor to support designer /// </summary> internal void Load(IPersistence persistence, FavoriteIcons favoriteIcons) { this.persistence = persistence; this.favoriteIcons = favoriteIcons; this.toolTipBuilder = new ToolTipBuilder(this.persistence.Security); var connectionHistory = this.persistence.ConnectionHistory; connectionHistory.HistoryRecorded += new HistoryRecorded(this.HistoryRecorded); connectionHistory.HistoryClear += new Action(this.ConnectionHistory_HistoryClear); var iconsBuilder = new ProtocolImageListBuilder(favoriteIcons.GetProtocolIcons); iconsBuilder.Build(this.imageListIcons); // init groups before loading the history to prevent to run the callback earlier InitializeTimeLineTreeNodes(); }