public SummaryStatistics(GeneratorStatistics statistics)
        {
            InitializeComponent();

            this.statisticsViewModel = new StatisticsViewModel(statistics);
            this.DataContext = this.statisticsViewModel;
        }
        public StatisticsViewModel(GeneratorStatistics statisticsData)
        {
            this._statisticsData = statisticsData;

            this.unknownExtensions = new List<KeyValuePair<string, FileInfo>>();

            foreach (var pair in statisticsData.IgnoredFormats)
                foreach(var file in pair.Value)
                    this.unknownExtensions.Add(new KeyValuePair<string, FileInfo>(pair.Key, file));
        }
 private void OpenGeneratorSummary(GeneratorStatistics statistics)
 {
     var summaryWindow = new SummaryStatistics(statistics);
     summaryWindow.Top = WindowsSettings.Default.SummaryWindowTop;
     summaryWindow.Left = WindowsSettings.Default.SummaryWindowLeft;
     summaryWindow.Width = WindowsSettings.Default.SummaryWindowWidth;
     summaryWindow.Height = WindowsSettings.Default.SummaryWindowHeight;
     summaryWindow.Owner = this;
     summaryWindow.ShowDialog();
 }