public CFilters() { db = new DBFShowLib.DBF(); db.OpenFile("ports.dbf"); system_filters = new List <filters_struct>(); user_filters = new List <filters_struct>(); system_filters.Add(new filters_struct() { name = "IP", userFilter = false, proto = PacketType.TCPandUDP, ports = "", komm = "" }); system_filters.Add(new filters_struct() { name = "TCP/UDP", userFilter = false, proto = PacketType.TCPandUDP, ports = "", komm = "" }); system_filters.Add(new filters_struct() { name = "ICMP", userFilter = false, proto = PacketType.ICMP, ports = "", komm = "" }); system_filters.Add(new filters_struct() { name = "IGMP", userFilter = false, proto = PacketType.IGMP, ports = "", komm = "" }); system_filters.Add(new filters_struct() { name = "ARP", userFilter = false, proto = PacketType.ARP, ports = "", komm = "" }); system_filters.Add(new filters_struct() { name = "OTHER", userFilter = false, proto = PacketType.UNKNOWN, ports = "", komm = "" }); LoadUserFilters(); }
public FormShowFilters() { InitializeComponent(); db = new DBFShowLib.DBF(); db.OpenFile("ports.dbf"); }