public MainForm() { InitializeComponent(); config = ConfigManager.GetContext("MainForm"); captureMgr = new Capture.Manager(); colorPool = new ColorPool(); //tblMessages = dataSet.Tables["messages"]; debugForm = new DebugForm(); swForm = new SoftwallForm(); packetParser = new PacketParser(debugForm); packetParser.PacketDescriptionReceived += new PacketParser.PacketDescriptionReceivedHandler(packetParser_PacketDescriptionReceived); dumpDisplayMode = DisplayMode.HEX; findTypeComboBox.SelectedIndex = 0; ClearState(); LoadSettings(); ApplyFilters(); }
// // API // public void Clear() { colorPool = new ColorPool(); // The first color is white, skip it colorPool.GetColorForId("MultiSessionView1"); DeleteSessions(sessions.ToArray()); }