static void Main() { Console.CursorVisible = false; Drowing.DrowRam(); Word.CheckFile(file, words); Word.DrowWord(words); }
public static void DrowWord(List <Word> words) { int i = 0; int k = 0; DateTime start = DateTime.Now; while (k < words.Count) { string[] date = (DateTime.Now - start).ToString().Split('.'); if (date[0] == words[i].Start) { if (i == words.Count - 1) { Drowing.DrowWord(words[i].Place, words[i].Color, words[i].Text); } else { Drowing.DrowWord(words[i].Place, words[i].Color, words[i].Text); i++; } } if (date[0] == words[k].End) { Drowing.CleanWord(words[k].Place, words[k].Color, words[k].Text); k++; } } }