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

            return(s);
        }
Ejemplo n.º 3
0
 private static void LoadSamples()
 {
     if (Script.IsNullOrUndefined(Window2.Rules))
     {
         return;
     }
     string[] Rules2 = (string[])(Window2.Samples);
     SamplePoems.Append(Rules2);
 }
Ejemplo n.º 4
0
 private void Go(SamplePoems V, string title, string author, string file)
 {
     Go(V.Poems, title, author, file);
 }