public static void initLeters() { List <string> lines = MyTextReader.read(MyTextReader.LETTERS); letters = new List <char>(); foreach (string line in lines) { letters.Add(line[0]); } }
private void loadTextForTextBox() { try { StringBuilder SB = new StringBuilder(); List <string> lines = MyTextReader.read(MyTextReader.TUTORIAL_PROGRAM_FILE); foreach (string line in lines) { SB.Append(line + "\n\r"); } tutorialTextBox.Text = SB.ToString(); } catch (NullReferenceException) { MessageBox.Show("Отсутствует файл со справкой"); } }