예제 #1
0
        public MainForm()
        {
            InitializeComponent();

            typeof(DataGridView).InvokeMember("DoubleBuffered",
                                              BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty,
                                              null,
                                              dgvPacketLog,
                                              new object[] { true });

            m_ignoredPackets = new IgnoredPackets();

            if (Properties.Settings.Default.UpgradeRequired)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.UpgradeRequired = false;
                Properties.Settings.Default.Save();
            }

            if (Properties.Settings.Default.IgnorePackets)
            {
                m_ignoredPackets.LoadFromFile(Properties.Settings.Default.IgnoredPacketsFile);
            }
        }
 /// <summary>
 /// Sets the current ignored packet list.
 /// </summary>
 /// <param name="ignoredPackets">The ignored packets object.</param>
 public void SetIgnoredPackets(IgnoredPackets ignoredPackets)
 {
     m_ignoredPackets = ignoredPackets;
 }