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

            if (pc != null)
            {
                this.refresh();
            }
        }
Esempio 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);
     }
 }