Beispiel #1
0
 protected override void OnVisibleChanged()
 {
     base.OnVisibleChanged();
     if (!Visible && ActiveScene == this)
     {
         ActiveScene = null;
     }
 }
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (!disposing)
            {
                return;
            }

            if (ActiveScene == this)
            {
                ActiveScene = null;
            }

            _buttons        = 0;
            _lastClickTime  = 0;
            _clickedControl = null;
        }
Beispiel #3
0
        protected override void Dispose(bool Disposing)
        {
            if (Disposing)
            {
                if (SceneTexture != null && !SceneTexture.Disposed)
                {
                    SceneTexture.Dispose();
                }
                SceneTexture = null;

                if (this == ActiveScene)
                {
                    ActiveScene = null;
                }
            }

            base.Dispose(Disposing);
        }
Beispiel #4
0
        protected override void Dispose(bool disposing)
        {

            base.Dispose(disposing);

            if (!disposing) return;

            if (ActiveScene == this) ActiveScene = null;

            _buttons = 0;
            _lastClickTime = 0;
            _clickedControl = null;
        }