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