public ScannerSaveForm(CRScanner crs) { InitializeComponent(); crScanner = crs; crl = new CRLogger(); initFormFeilds(); }
public RegexEditorForm() { InitializeComponent(); initFrom();//common form setup method crs = new CRScanner(); fileSavePath = ""; crl = new CRLogger(); }
public RegexEditorForm(RegexFormCache rpc) { InitializeComponent(); initFrom();//common form setup method crs = rpc.CRS; crl = rpc.CRL; fileSavePath = rpc.FileSavePath; workingScanDir = rpc.WorkingScanDir; }
/// <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 }
public AddMulPatForm(CRScanner crs) { InitializeComponent(); this.crs = crs; crl = new CRLogger(); }