public FilterForm(PacketContainer pc, KnownPackets kp) { InitializeComponent(); this.pc = pc; this.kp = kp; if (pc != null) this.refresh(); }
public Form1() { InitializeComponent(); try { this.knownPackets = new KnownPackets(Application.StartupPath + "\\packets.txt"); } catch (Exception) { MessageBox.Show("There is an error with the packetdescription file.\n " +"Either it's not present or it has an syntax error.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }