// Regner ut valgt serie public void calculateByOneEpisode(DataTable dt, string searchString) { List <Episode> episodeList = Calculations.calculateSearchResultsByEpisode(dt, searchString); int totNumLines = PrintResult.printResultByEpisode(episodeList, flowLayoutPanel1, chckIntro); decimal t = decimal.Round((Convert.ToDecimal(totNumLines) / 90), 2); lblTotalNumLines.Text = "TOTALT antall replikker: " + Convert.ToString(totNumLines) + ". Det vil ta " + t + " timer å dubbe ferdig."; }
// Regner ut alle seriene public void calculateAllSeriesAndEpisodes(NordubbProductions productions, string searchString) { int totNumLines = 0; foreach (var item in productions.productions) { //string seriesName = ""; List <Episode> episodeList = Calculations.calculateSearchResultsByEpisode(item.frontPageDataTable, searchString); if (episodeList.Count > 0) { //seriesName = item.seriesName.ToString(); totNumLines = totNumLines + PrintResult.printResultByEpisode(episodeList, flowLayoutPanel1, chckIntro); } // Må gi Utskriften en mulighet til å skrive ut navn på eps } ; decimal t = decimal.Round((Convert.ToDecimal(totNumLines) / 90), 2); lblTotalNumLines.Text = "TOTALT antall replikker: " + totNumLines.ToString() + ". Det vil ta " + t + " timer å dubbe ferdig."; }