WMPLib.IWMPPlaylist pl = this.axWindowsMediaPlayer1.playlistCollection.newPlaylist("mylist");
WMPLib.IWMPMedia im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia("T.wav");
pl.appendItem(im1);
DateTime dt = DateTime.Now;
int h = dt.Hour;
if (h > 9)
{
int s = h / 10;
int g = h % 10;
string sw = s.ToString() + "0";
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia(sw + ".wav");
pl.appendItem(im1);
if (g != 0)
{
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia(g + ".wav");
pl.appendItem(im1);
}
}
else
{
string hh = h.ToString();
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia(hh+".wav");
pl.appendItem(im1);
}
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia("d.wav");
pl.appendItem(im1);
int m = dt.Minute;
if (m > 9)
{
int s = m / 10;
int g = m % 10;
string sw = s.ToString() + "0";
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia(sw + ".wav");
pl.appendItem(im1);
if (g != 0)
{
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia(g + ".wav");
pl.appendItem(im1);
}
}
else
{
string hh = m.ToString();
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia( "0.wav");
pl.appendItem(im1);
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia(hh + ".wav");
pl.appendItem(im1);
}
im1 = (WMPLib.IWMPMedia)this.axWindowsMediaPlayer1.newMedia("m.wav");
pl.appendItem(im1);
this.axWindowsMediaPlayer1.currentPlaylist = pl;