Ejemplo n.º 1
0
        public FilterForm(PacketContainer pc, KnownPackets kp)
        {
            InitializeComponent();
            this.pc = pc;
            this.kp = kp;

            if (pc != null)
                this.refresh();
        }
Ejemplo n.º 2
0
 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);
     }
 }