Beispiel #1
0
        /// ------------------------------------------------------------------------------------
        private void WriteOverviewSection()
        {
            var text = LocalizationManager.GetString("ProgressView.OverviewHeadingText", "Overview");

            WriteHeading(text);
            OpenTable("overview");
            OpenTableHead();

            foreach (var kvp in _statsViewModel.GetElementStatisticsPairs())
            {
                OpenTableRow();
                WriteTableRowHead(kvp.Key);
                WriteTableCell("elementcount", kvp.Value);
                CloseTableRow();
            }

            CloseTableHead();
            OpenTableBody();

            foreach (var stats in _statsViewModel.GetComponentRoleStatisticsPairs())
            {
                OpenTableRow();
                WriteTableRowHead(string.Format("{0}:", stats.Name));
                WriteTableCell(stats.Length);
                WriteTableCell(stats.Size);
                CloseTableRow();
            }

            CloseTableBody();
            CloseTable();
        }