Пример #1
0
 public static KMusic GetInstance()
 {
     if (_this == null)
     {
         lock (lockHelper)
         {
             if (_this == null)
             {
                 _this = new KMusic();
             }
         }
     }
     return(_this);
 }
Пример #2
0
 private void KMusic_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (lrcPlay_Time != null)
     {
         lrcPlay_Time.Enabled = false;
         lrcPlay_Time.Stop();
     }
     if (axPlayer1 != null)
     {
         axPlayer1.Dispose();
     }
     if (_this != null)
     {
         _this = null;
     }
 }