static StreamVisualizationManager() { // FIXME: get these from plugins visualizers = new List<SessionVisualizer>(); visualizerFromName = new Dictionary<string, SessionVisualizer>(); tcpEventsVis = new TCPEventsVisualizer(); Register(tcpEventsVis); Register(new TCPVisualizer()); Register(new HTTPVisualizer()); Register(new MSNSBVisualizer()); Register(new MSNP2PVisualizer()); }
static StreamVisualizationManager() { // FIXME: get these from plugins visualizers = new List <SessionVisualizer>(); visualizerFromName = new Dictionary <string, SessionVisualizer>(); tcpEventsVis = new TCPEventsVisualizer(); Register(tcpEventsVis); Register(new TCPVisualizer()); Register(new HTTPVisualizer()); Register(new MSNSBVisualizer()); Register(new MSNP2PVisualizer()); }
public SessionVisualizer[] GetSelectedVisualizers() { List <SessionVisualizer> visualizers = new List <SessionVisualizer>(2); foreach (object obj in visualizersBox.Items) { if (visualizersBox.GetItemChecked(visualizersBox.Items.IndexOf(obj))) { SessionVisualizer vis = obj as SessionVisualizer; visualizers.Add(vis); } } return(visualizers.ToArray()); }
private static void Register(SessionVisualizer visualizer) { visualizers.Add(visualizer); visualizerFromName.Add(visualizer.Name, visualizer); }