Ejemplo n.º 1
0
        private void Generate()
        {
            int    totaal = 0;
            int    count  = 0;
            string text   = "hallo ik ben mendel en ik heet mendel maar en dus oke uhm en waardoor ik wil en dus maar maar uhm uhm uhm oke doei";           //eigenlijk omgezette tekst

            for (int i = 0; i < stopwoorden.Count; i++)
            {
                if (text.Contains(stopwoorden[i]))
                {
                    count  = (text.Length - text.Replace(stopwoorden[i], "").Length) / stopwoorden[i].Length;
                    totaal = totaal + count;
                }
                else
                {
                    count = 0;
                }
                aantalstopwoorden.Add(count);
            }

            char[] delimiters = new char[] { ' ' };
            int    aantal     = text.Split(delimiters, StringSplitOptions.RemoveEmptyEntries).Length;

            Presentatie pres = new Presentatie(textBox1.Text, time, aantal, totaal);

            pres.Add(Gebruikersnaam);

            for (int i = 0; i < aantalstopwoorden.Count; i++)
            {
                Presentatie sample = new Presentatie(textBox1.Text, stopwoorden[i], aantalstopwoorden[i]);
                sample.Sample();
            }
        }
Ejemplo n.º 2
0
        public record(string GN)
        {
            Gebruikersnaam = GN;
            InitializeComponent();
            Presentatie pres = new Presentatie();

            pres.Getall();
            for (int i = 0; i < pres.Stopwoorden.Count; i++)
            {
                checkedListBox1.Items.Add(pres.Stopwoorden[i]);
            }
        }
Ejemplo n.º 3
0
        public Main(string GN)
        {
            Gebruikersnaam = GN;
            InitializeComponent();

            Presentatie pres = new Presentatie();

            pres.GetPresName(Gebruikersnaam);

            for (int i = 0; i < pres.Presentatielist.Count; i++)
            {
                listBox1.Items.Add(pres.Presentatielist[i].ToString());
            }
        }
Ejemplo n.º 4
0
        public void Write()
        {
            Presentatie pres = new Presentatie();

            pres.GetPres(Presentatienaam);
            AantalG.AddRange(pres.AantalperStopwoord);
            Gebruiker.Text          = pres.Gebruikersnaam;
            Lengte.Text             = pres.Lengte.ToShortTimeString();
            Aantal_woorden.Text     = pres.Aantal_Woorden.ToString();
            Aantal_stopwoorden.Text = pres.Aantal_stopwoorden.ToString();

            for (int i = 0; i < pres.Stopwoorden.Count; i++)
            {
                listBox1.Items.Add(pres.Stopwoorden[i]);
            }
        }