コード例 #1
0
ファイル: Program.cs プロジェクト: newhuaszh/WPF
        static void Main(string[] args)
        {
            MediaPlayer myPlayer = new MediaPlayer();
            myPlayer.Play();

            ReadLine();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            MediaPlayer myPlayer = new MediaPlayer();
            myPlayer.Play();

            MediaPlayer youPlayer = new MediaPlayer();
            AllTracks yourMusic = youPlayer.GetAllTracks();

            Console.ReadLine();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: usedflax/flaxbox
        static void Main( string[] args )
        {
            Console.WriteLine("***** Fun with Lazy Instantiation *****\n");

            // No allocation of AllTracks object here!
            MediaPlayer myPlayer = new MediaPlayer();
            myPlayer.Play();

            // Allocation of AllTracks happens when you call GetAllTracks().
            MediaPlayer yourPlayer = new MediaPlayer();
            AllTracks yourMusic = yourPlayer.GetAllTracks();

            Console.ReadLine();
        }
コード例 #4
0
 static void Main(string[] args) {
     MediaPlayer mp = new MediaPlayer();
     mp.Play();
     mp.GetAllTracks();
     Console.ReadLine();
 }