// This window will work as the link between the capture processes and the analysis processes public AnalysisWindow(CaptureWindow cw, bool countAnalysis, bool classAnalysis, string map, string folder) { InitializeComponent(); this.Width = 1200; this.Height = 900; if (countAnalysis) { countPage = new CountAnalytics(this); chartPage = new ChartPage(); } if (classAnalysis) { clssPage = new ClassifyAnalytics(); if (map.Length > 1) { clssPage.Init(map, countPage); } } pick = new Picker(cw, countAnalysis, classAnalysis, clssPage, countPage, chartPage, folder); Navigate(pick); closeRequest = false; captureWindow = cw; }
// UI initialization with a link to every analysis related interface public Picker(CaptureWindow cw, bool count, bool classAn, ClassifyAnalytics clss, CountAnalytics cnt, ChartPage chp, string folder) { InitializeComponent(); captureWindow = cw; countAnalysis = count; classAnalysis = classAn; Logo_Init(); Panel_Logic_Init(); clssPage = clss; countPage = cnt; chartPage = chp; saveFolder = folder; }