Exemplo n.º 1
0
 protected void OnRenderIntervalChanged(RenderIntervalManager myManager)
 {
     if (myManager == null)
     {
         this.OnRenderIntervalChanged(null, RenderIntervalRequest.MinInterval);
         return;
     }
     this.OnRenderIntervalChanged(myManager, myManager.RenderInterval);
 }
Exemplo n.º 2
0
 protected void OnIsRenderingChanged(RenderIntervalManager myManager)
 {
     if (myManager == null)
     {
         this.OnIsRenderingChanged(null, false);
         return;
     }
     this.OnIsRenderingChanged(myManager, myManager.IsRendering);
 }
Exemplo n.º 3
0
        private void NotifyAllEvents()
        {
            RenderIntervalManager mngr = null;

            if (this._managerPointer != null)
            {
                mngr = this._managerPointer.GetManager();
            }
            this.OnRenderIntervalChanged(mngr);
            this.OnIsRenderingChanged(mngr);
        }
Exemplo n.º 4
0
        protected virtual void OnRenderIntervalChanged(RenderIntervalManager manager, int interval)
        {
            RenderIntervalManager mngr = null;

            if (this._managerPointer != null)
            {
                mngr = this._managerPointer.GetManager();
            }

            if (mngr == null || mngr != manager)
            {
                if (manager != null)
                {
                    manager.RenderIntervalChanged -= this.OnRenderIntervalChanged;
                }
                return;
            }
            if (this._renderIntervalChanged != null)
            {
                this._renderIntervalChanged.Invoke(interval);
            }
        }
Exemplo n.º 5
0
        protected virtual void OnIsRenderingChanged(RenderIntervalManager manager, bool isRendering)
        {
            RenderIntervalManager mngr = null;

            if (this._managerPointer != null)
            {
                mngr = this._managerPointer.GetManager();
            }

            if (mngr == null || mngr != manager)
            {
                if (manager != null)
                {
                    manager.IsRenderingChanged -= this.OnIsRenderingChanged;
                }
                return;
            }
            if (this._isRenderingChanged != null)
            {
                this._isRenderingChanged.Invoke(isRendering);
            }
        }