コード例 #1
0
        private void Setup(Data.Project project, Parser.Scanner scanner)
        {
            _project   = project;
            _scanner   = scanner;
            _analytics = Parser.Analytics.Analyze(_project);

            errorsListView.Items.Clear();
            foreach (string s in scanner.Errors)
            {
                errorsListView.Items.Add(s);
            }
            missingFilesListView.Items.Clear();
            foreach (string s in scanner.NotFound.OrderBy(s => s))
            {
                missingFilesListView.Items.Add(s);
            }

            string file = Parser.Report.Generate(_project, _analytics);

            if (reportBrowser.Url != null)
            {
                reportBrowser.Refresh();
            }
            else
            {
                reportBrowser.Navigate(file);
            }
            reportBrowser.Navigating += reportBrowser_Navigating;
        }
コード例 #2
0
 public void Setup(Data.Project project, Parser.Scanner scanner)
 {
     _project      = project;
     _scanner      = scanner;
     _analytics    = Parser.Analytics.Analyze(_project);
     _include_data = new IncludeData(_analytics);
 }
コード例 #3
0
        public ReportForm(Data.Project project, Parser.Scanner scanner)
        {
            InitializeComponent();

            includedByListView.MouseDoubleClick += new MouseEventHandler(includedByListView_MouseDoubleClick);
            includesListView.MouseDoubleClick   += new MouseEventHandler(includedByListView_MouseDoubleClick);

            Setup(project, scanner);
        }
コード例 #4
0
ファイル: ReportForm.cs プロジェクト: aras-p/header_hero
        public ReportForm(Data.Project project, Parser.Scanner scanner)
        {
            InitializeComponent();
            this.Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);

            includedByListView.MouseDoubleClick += new MouseEventHandler(includedByListView_MouseDoubleClick);
            includesListView.MouseDoubleClick   += new MouseEventHandler(includedByListView_MouseDoubleClick);

            Cursor.Current = Cursors.WaitCursor;
            Setup(project, scanner);
            Cursor.Current = Cursors.Default;
        }
コード例 #5
0
        private void scanToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ParseProject();
            Parser.Scanner scanner = new Parser.Scanner(_project);

            DateTime       started = DateTime.Now;
            ProgressDialog d       = new ProgressDialog();

            d.Text = "Scanning source files...";
            d.Work = (feedback) => scanner.Rescan(feedback);
            d.Start();
            _project.LastScan = started;

            DisplayProject();

            ReportForm rf = new ReportForm(_project, scanner);

            rf.Show();
        }
コード例 #6
0
        partial void scan(NSObject sender)
        {
            ParseProject();
            Parser.Scanner scanner = new Parser.Scanner(_project);

            DateTime       started = DateTime.Now;
            ProgressDialog d       = new ProgressDialog();

            d.Text = "Scanning source files...";
            d.Work = (feedback) => scanner.Rescan(feedback);
            d.Start();
            _project.LastScan = started;

            DisplayProject();

            ReportWindowController rwc = new ReportWindowController();

            rwc.Setup(_project, scanner);
            rwc.Window.MakeKeyAndOrderFront(this);
        }