Пример #1
0
 private void StoryStringListTest()
 {
     StoryReader storyReader = new StoryReader();
     Story story = new Story();
     story = storyReader.GetWholeStory();
     foreach (string str in story.text)
     {
         richTextBox1.Text += (str + "\n");
     }
 }
Пример #2
0
 public Story GetWholeStory()
 {
     Story story = new Story();
     StreamReader SR = new StreamReader(currentDir + @"DATA\AVGS\story.avgs", Encoding.GetEncoding("GB2312"));
     string tempStr;
     while ((tempStr = SR.ReadLine()) != null)
     {
         story.text.Add(tempStr);
     }
     return story;
 }