public static KMusic GetInstance() { if (_this == null) { lock (lockHelper) { if (_this == null) { _this = new KMusic(); } } } return(_this); }
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; } }