Advertisement
WindowsTV

Untitled

Sep 16th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1.  
  2.         private void checkTime()
  3.         {
  4.  
  5.             if (DateTime.Now.TimeOfDay == System.TimeSpan.Parse("00:09:37"))
  6.             {
  7.  
  8.                 axWindowsMediaPlayer1.Ctlcontrols.currentPosition = 0;
  9.                 axWindowsMediaPlayer1.Ctlcontrols.play();
  10.  
  11.             }
  12.             else if ((DateTime.Now.TimeOfDay == System.TimeSpan.Parse("00:09:38")))
  13.             {
  14.                 this.Close();
  15.             }
  16.  
  17.         }
  18.  
  19.         private void timer1_Tick(object sender, EventArgs e)
  20.         {
  21.             checkTime();
  22.         }
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement