Пример #1
0
 //获取实例
 public static WMPlayerForm GetInstance()
 {
     if (_uniquePlayer == null)
     {
         _uniquePlayer = new WMPlayerForm();
     }
     return(_uniquePlayer);
 }
Пример #2
0
 private void WMPlayerTest_FormClosing(object sender, FormClosingEventArgs e)
 {
     wmPlayerForm = null;
 }
Пример #3
0
 private void btnPlay_Click(object sender, EventArgs e)
 {
     wmPlayerForm = WMPlayerForm.GetInstance();
     wmPlayerForm.Show();
     wmPlayerForm.Play(@"Resources\Sound\AD\ad_1.m4a");
 }
Пример #4
0
 private void WMPlayerForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _uniquePlayer = null;
 }