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;