public frmCodeView(String strFile,int intLine, frmMain frmMaster) { InitializeComponent(); this.Text = "Code View - " + strFile; strFilePath = strFile; this.intLine = intLine; this.frmMaster = frmMaster; }
public frmBrowser(string strPath, string strExts, frmMain frmMaster) { InitializeComponent(); this.frmMaster = frmMaster; treeFiles.ImageList = frmBrowser.ImageList; TreeNode rootNode = new TreeNode(); rootNode.Text = strPath; rootNode.Expand(); treeFiles.Nodes.Add(rootNode); EnumerateFiles(strPath, strExts, rootNode); }
public frmSearch(String strTerm, frmMain frmMaster, bool bGrepify=false) { InitializeComponent(); this.Text = "Search Results - " + strTerm; this.frmMaster = frmMaster; this.bIsGrepify = bGrepify; if (bGrepify) { this.cmdGraphResults.Enabled = true; } else { this.cmdGraphResults.Enabled = false; // Don't let people even click the button if it's not a grepify scan } }
public frmCodeViewNew(String strFile,int intLine, frmMain frmMaster) { InitializeComponent(); this.Text = "Code View - " + strFile; strFilePath = strFile; this.intLine = intLine; this.frmMaster = frmMaster; this.scintilla.Styles[1].BackColor = Color.LightGreen; this.scintilla.Styles[1].ForeColor = Color.White; this.scintilla.Styles[1].Font = new Font(this.scintilla.Font, FontStyle.Regular); this.scintilla.Indicators[0].Style = IndicatorStyle.RoundBox; this.scintilla.Indicators[0].Color = Color.Green; }
public frmSearch(String strTerm, frmMain frmMaster) { InitializeComponent(); this.Text = "Search Results - " + strTerm; this.frmMaster = frmMaster; }
/// <summary> /// /// </summary> /// <param name="strFile"></param> public FileToScan(string strFile, Scanner scanEngine) { this.strTerm = scanEngine.strTerm; this.strAPIs = scanEngine.strAPIs; this.strFile = strFile; this.bCase = scanEngine.bCase; this.bRegex = scanEngine.bRegex; this.bComments = scanEngine.bComments; this.frmMaster = scanEngine.frmMain; this.frmSearch = scanEngine.frmSearch; this.engineLocal = scanEngine; this.strCommentsRegex = scanEngine.strCommentsRegex; }
/// <summary> /// Start /// </summary> /// <returns></returns> public bool Start(frmMain frmMain, frmSearch frmSearch) { this.frmMain = frmMain; this.frmSearch = frmSearch; try { ThreadPool.SetMaxThreads(intMaxThreads, intMaxThreads * 2); trdEnum = new Thread(this.ThreadFunction); trdEnum.IsBackground = true; trdEnum.Start(); return true; } catch (Exception) { return false; } }