Exemple #1
0
        public void AddText()
        {
            Console.WriteLine("Enter the heading: ");
            heading = Console.ReadLine();
            Sentense sent = new Sentense();

            while (sent.status)
            {
                if (Console.KeyAvailable == true)
                {
                    Console.Clear();
                    Console.WriteLine(heading);
                    var keyInfo = Console.ReadKey();
                    sent.AddSentense(sentenses, keyInfo);
                    for (int i = 0; i < sentenses.Count; i++)
                    {
                        Console.Write(sentenses[i] + " ");
                    }
                }
            }
        }
Exemple #2
0
 public Text()
 {
     sentense  = new Sentense();
     word      = new Word();
     sentenses = new List <string>();
 }