源代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
namespace MusicPlayer
{
public partial class frmPlayer : Form
{
private static frmPlayer uniquePlayer;
public frmPlayer()
{
InitializeComponent();
}
public static frmPlayer GetInstance()
{
if (uniquePlayer==null)
{
uniquePlayer = new frmPlayer();
}
return uniquePlayer;
}