Пример #1
0
 public void SetCore(IWMPCore PassedCore)
 {
     lock (this)
     {
         Core = (PassedCore == null) ? null : PassedCore;
     }
 }
Пример #2
0
        public void SetCore(IWMPCore PassedCore)
        {
            if (PassedCore == null)
            {
                MyCore = null;
                return;
            }

            MyCore = PassedCore;
        }
Пример #3
0
 /// <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)
     {
     }
 }
Пример #4
0
        /// <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)
            {

            }
        }