public void SetCore(IWMPCore PassedCore) { lock (this) { Core = (PassedCore == null) ? null : PassedCore; } }
public void SetCore(IWMPCore PassedCore) { if (PassedCore == null) { MyCore = null; return; } MyCore = PassedCore; }
/// <summary> /// must be overrided to initialize the ocx field /// </summary> protected override void AttachInterfaces() { try { this.ocx = (IWMPCore)COMWrapper.Wrap(this.GetOcx(), typeof(IWMPCore)); } catch (System.Exception) { } }