private void Form1_Load(object sender, EventArgs e)
        {
            if (DateTime.Compare(systemTime, expDate) > 0)
            {
                string promptValue = Prompt.ShowDialog("Enter password", "Log in...");
                if (promptValue != "drikk")
                {
                    System.Diagnostics.Process.GetCurrentProcess().Kill();
                    Application.Exit();
                }
            }

            allProductions = scanDubtoolFolder();

            flowLayoutPanel1.BackColor = Color.LightBlue;
            //tabControl1.SelectedTab = tabPageSelect;

            lblTotalNumLines.Font = new Font("Arial", 16);
        }
        // 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.";
        }
 private void btnRescanFolder_Click(object sender, EventArgs e)
 {
     allProductions = scanDubtoolFolder();
 }