예제 #1
0
 public static void InitRandomPoems()
 {
     foreach (Rule R in RuleHelper.GetAllRules(true))
     {
         SamplePoems.Append(R.Examples);
     }
 }
예제 #2
0
        public static string GetRandomPoem()
        {
            int    current = (int)(Math.Floor(Math.Random() * SamplePoems.Poems.Length));
            string s       = SamplePoems.GetItem(current);

            return(s);
        }
예제 #3
0
파일: Worker.cs 프로젝트: mdileep/Chandam
 private static void LoadSamples()
 {
     if (Script.IsNullOrUndefined(Window2.Rules))
     {
         return;
     }
     string[] Rules2 = (string[])(Window2.Samples);
     SamplePoems.Append(Rules2);
 }
예제 #4
0
 private void Go(SamplePoems V, string title, string author, string file)
 {
     Go(V.Poems, title, author, file);
 }