static void Main(string[] args) { //////////////// Day 1 //////////// Average av = new Average(); DisplayNumber dn = new DisplayNumber(); MultiplicationTable mt = new MultiplicationTable(); StringSwap ss = new StringSwap(); Temperature tt = new Temperature(); LongWord lw = new LongWord(); //av.FindAverage(); //dn.GetNumber(); //mt.FindMultiplication(); //ss.SwapString(); //lw.FindLongWord(); //tt.TemperatureConversion(); ///////////Day 2/////////////// CubeNumber cn = new CubeNumber(); Fibonacci fs = new Fibonacci(); //cn.FindCubic(); //fs.DisplayFibonacci(); fs.DisplayFibonacciByRecursion(); }
void timer_Tick(object sender, EventArgs e) { timer.Interval = NormalTime; if (Position >= splitText.Length) { //Position = 0; timer.Stop(); return; } textDrawer.Text = splitText[Position++]; string lastLetterOfCurrentWord = splitText[Position - 1].Substring(splitText[Position - 1].Length - 1); //if (splitText[Position -1].Substring(splitText[Position -1].Length - 1) == ".") if (IsPunctuation(lastLetterOfCurrentWord)) { timer.Stop(); blankSpaceTimer.Start(); } else if (textDrawer.Text.Length > 8) { switch (textDrawer.Text.Length) { case 9: case 10: case 11: timer.Interval = LongWord; break; default: timer.Interval = LongWord.Add(new TimeSpan(0, 0, 0, 0, 100)); break; } } }