예제 #1
0
        public SummaryStatistics(GeneratorStatistics statistics)
        {
            InitializeComponent();

            this.statisticsViewModel = new StatisticsViewModel(statistics);
            this.DataContext         = this.statisticsViewModel;
        }
        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();
        }
예제 #3
0
        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));
                }
            }
        }