Ejemplo n.º 1
0
 public ScannerSaveForm(CRScanner crs)
 {
     InitializeComponent();
     crScanner = crs;
     crl       = new CRLogger();
     initFormFeilds();
 }
Ejemplo n.º 2
0
        public RegexEditorForm()
        {
            InitializeComponent();
            initFrom();//common form setup method

            crs          = new CRScanner();
            fileSavePath = "";
            crl          = new CRLogger();
        }
Ejemplo n.º 3
0
        public RegexEditorForm(RegexFormCache rpc)
        {
            InitializeComponent();
            initFrom();//common form setup method

            crs            = rpc.CRS;
            crl            = rpc.CRL;
            fileSavePath   = rpc.FileSavePath;
            workingScanDir = rpc.WorkingScanDir;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// This constructor is used when original form calls another form
        /// </summary>
        /// <param name="Crs"></param>
        /// <param name="Crl"></param>
        /// <param name="FileSavepath"></param>
        /// <param name="text"></param>
        public RegexEditorForm(CRScanner Crs, CRLogger Crl, string FileSavepath,
                               string workDir, string text)
        {
            InitializeComponent();
            initFrom();//common form setup method

            //setup new scanner
            crs = new CRScanner();
            foreach (var p in Crs.Patterns)//add patterns
            {
                crs.Patterns.Add(p);
            }

            foreach (var fex in Crs.FileExtensions)//add file extensions
            {
                crs.FileExtensions.Add(fex);
            }


            fileSavePath      = FileSavepath;//set up the save path
            crl               = Crl;
            richTextBox1.Text = text;
            workingScanDir    = workDir;//setup the working dir
        }
Ejemplo n.º 5
0
 public AddMulPatForm(CRScanner crs)
 {
     InitializeComponent();
     this.crs = crs;
     crl      = new CRLogger();
 }