예제 #1
0
        private void Patterncfg_Load(object sender, EventArgs e)
        {
            se = new Scanner.ScanEngine();
            if (se.LoadPatterns() == 0)
            {
                MessageBox.Show("No patterns found", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            foreach (Pattern p in se.Patterns)
            {
                chklbPatterns.Items.Add(p, p.enabled);
            }
        }
예제 #2
0
        private void FileProcessing_Load(object sender, EventArgs e)
        {
            // Load the FileManagers
            smgr.ImportFileReaders();
            if (smgr.FileReaders.Count() == 0)
            {
                MessageBox.Show("No file readers found", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            // Load the Scan engine and the patterns
            if (scanEngine.LoadPatterns() == 0)
            {
                MessageBox.Show("No patterns found", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
        }