Example #1
0
 public void GetSayingTest( )
 {
     for (int i = 0; i < 1000; i++)
     {
         Console.WriteLine(GameSaying.GetSaying( ));
     }
 }
Example #2
0
        private TimeSpan UpdateSaying( )
        {
            CurrentSaying = GameSaying.GetSaying( );

            SayingPresenter newPresenter = HidePrsenster;

            HidePrsenster = CurrentPrenster;
            HidePrsenster.Hide( );

            CurrentPrenster        = newPresenter;
            CurrentPrenster.Saying = CurrentSaying;
            CurrentPrenster.Show( );

            TimeSpan timeSpan = TimeSpan.FromSeconds(CurrentSaying.Content.Length * 0.1 + 2);

            return(timeSpan);
        }