コード例 #1
0
ファイル: frmCodeView.cs プロジェクト: Nusec/ncccodenavi
 public frmCodeView(String strFile,int intLine, frmMain frmMaster)
 {
     InitializeComponent();
     this.Text = "Code View - " + strFile;
     strFilePath = strFile;
     this.intLine = intLine;
     this.frmMaster = frmMaster;
 }
コード例 #2
0
ファイル: frmBrowser.cs プロジェクト: Nusec/ncccodenavi
        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);
        }
コード例 #3
0
ファイル: frmSearchNew.cs プロジェクト: Nusec/ncccodenavi
 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
     }
 }
コード例 #4
0
 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;
 }
コード例 #5
0
ファイル: frmSearch.cs プロジェクト: etdsoft/ncccodenavi
 public frmSearch(String strTerm, frmMain frmMaster)
 {
     InitializeComponent();
     this.Text = "Search Results - " + strTerm;
     this.frmMaster = frmMaster;
 }
コード例 #6
0
 public frmSearch(String strTerm, frmMain frmMaster)
 {
     InitializeComponent();
     this.Text      = "Search Results - " + strTerm;
     this.frmMaster = frmMaster;
 }
コード例 #7
0
ファイル: Scanner.cs プロジェクト: etdsoft/ncccodenavi
 /// <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;
 }
コード例 #8
0
ファイル: Scanner.cs プロジェクト: etdsoft/ncccodenavi
        /// <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;
            }
        }