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

            if (this._managerPointer != null)
            {
                mngr = this._managerPointer.GetManager();
            }
            this.OnRenderIntervalChanged(mngr);
            this.OnIsRenderingChanged(mngr);
        }
Exemple #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);
            }
        }
Exemple #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);
            }
        }