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; }
public void Setup(Data.Project project, Parser.Scanner scanner) { _project = project; _scanner = scanner; _analytics = Parser.Analytics.Analyze(_project); _include_data = new IncludeData(_analytics); }
public ReportForm(Data.Project project, Parser.Scanner scanner) { InitializeComponent(); includedByListView.MouseDoubleClick += new MouseEventHandler(includedByListView_MouseDoubleClick); includesListView.MouseDoubleClick += new MouseEventHandler(includedByListView_MouseDoubleClick); Setup(project, scanner); }
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; }
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(); }
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); }