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] + " "); } } } }
public Text() { sentense = new Sentense(); word = new Word(); sentenses = new List <string>(); }