Exemplo n.º 1
0
        private void MainPage_Unloaded(object sender, object args)
        {
            led.Dispose();

            button.Pressed  -= ButtonPressed;
            button.Released -= ButtonReleased;
            button.Dispose();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Dispose popup
        /// </summary>
        public void Deactivate()
        {
            Window.Instance.GetDefaultLayer().Remove(guide);
            guide.Dispose();
            guide = null;

            Window.Instance.GetDefaultLayer().Remove(userGuide);
            userGuide.Dispose();
            userGuide = null;

            Window.Instance.GetDefaultLayer().Remove(popupButton);
            popupButton.Dispose();
            popupButton = null;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Dispose checkBoxGroup and guide.
        /// </summary>
        public void Deactivate()
        {
            Window.Instance.GetDefaultLayer().Remove(guide);
            guide.Dispose();
            guide = null;

            Window.Instance.GetDefaultLayer().Remove(image);
            image.Dispose();
            image = null;

            Window.Instance.GetDefaultLayer().Remove(fittingModeButton);
            fittingModeButton.Dispose();
            fittingModeButton = null;
        }
Exemplo n.º 4
0
        /// <summary>
        /// Dispose radioButtonGroupView and guide
        /// </summary>
        public void Deactivate()
        {
            Window.Instance.GetDefaultLayer().Remove(guide);
            guide.Dispose();
            guide = null;

            Window.Instance.GetDefaultLayer().Remove(svgImage);
            svgImage.Dispose();
            svgImage = null;

            Window.Instance.GetDefaultLayer().Remove(zoomInButton);
            zoomInButton.Dispose();
            zoomInButton = null;

            Window.Instance.GetDefaultLayer().Remove(zoomOutButton);
            zoomOutButton.Dispose();
            zoomOutButton = null;
        }
Exemplo n.º 5
0
        public override void Dispose()
        {
            mBackgroundWindow.Dispose();
            mBackgroundWindow = null;
            mTestWindow.Dispose();
            mTestWindow = null;
            mQuitButton.Dispose();
            mQuitButton = null;
            mEditbox.Dispose();
            mEditbox = null;

            WindowManager.Instance.destroyAllWindows();
            mGuiSystem.Dispose();
            mGuiSystem = null;
            mGuiRenderer.Dispose();
            mGuiRenderer = null;

            base.Dispose();
        }
Exemplo n.º 6
0
        public override void Dispose()
        {
            mBackgroundWindow.Dispose();
            mBackgroundWindow = null;
            mEditorWindow.Dispose();
            mEditorWindow = null;
            mQuitButton.Dispose();
            mQuitButton = null;
            mEditbox.Dispose();
            mEditbox = null;
            mCombobox.Dispose();
            mCombobox = null;
            mCboItem1 = null; mCboItem2 = null; mCboItem3 = null; mCboItem4 = null;

            WindowManager.Instance.destroyAllWindows();
            mGuiSystem.Dispose();
            mGuiSystem = null;
            mGuiRenderer.Dispose();
            mGuiRenderer = null;

            mLog = null;
            base.Dispose();
        }
Exemplo n.º 7
0
        /// <summary>
        /// Remove all the view from window. and Dispose puahButton, imageViews, tableView and guide.
        /// </summary>
        public void Deactivate()
        {
            Window.Instance.GetDefaultLayer().Remove(guide);
            guide.Dispose();
            guide = null;

            Window.Instance.GetDefaultLayer().Remove(pushButton);
            pushButton.Dispose();
            pushButton = null;

            for (uint i = 0; i < 3; i++)
            {
                for (uint j = 0; j < 3; j++)
                {
                    tableView.Remove(imageView[i * 3 + j]);
                    imageView[i * 3 + j].Dispose();
                    imageView[i * 3 + j] = null;
                }
            }

            Window.Instance.GetDefaultLayer().Remove(tableView);
            tableView.Dispose();
            tableView = null;
        }
Exemplo n.º 8
0
        public void Deactivate()
        {
            if (mTitle)
            {
                tool_bar.Remove(mTitle);
                mTitle.Dispose();
                mTitle = null;
            }

            if (mSlideshowButton)
            {
                tool_bar.Remove(mSlideshowButton);
                mSlideshowButton.Clicked -= OnPushButtonClicked;
                mSlideshowButton.Dispose();
                mSlideshowButton = null;
            }

            if (toggle_button)
            {
                tool_bar.Remove(toggle_button);
                toggle_button.Clicked -= OnToggleButtonClicked;
                toggle_button.Dispose();
                toggle_button = null;
            }

            if (tool_bar)
            {
                Window.Instance.GetDefaultLayer().Remove(tool_bar);
                tool_bar.Dispose();
                tool_bar = null;
            }

            if (mCubeWaveEffect)
            {
                mCubeWaveEffect.TransitionCompleted -= OnCubeEffectCompleted;
                mCubeWaveEffect.Dispose();
                mCubeWaveEffect = null;
            }

            if (mCubeCrossEffect)
            {
                mCubeCrossEffect.TransitionCompleted -= OnCubeEffectCompleted;
                mCubeCrossEffect.Dispose();
                mCubeCrossEffect = null;
            }

            if (mCubeFoldEffect)
            {
                mCubeFoldEffect.TransitionCompleted -= OnCubeEffectCompleted;
                mCubeFoldEffect.Dispose();
                mCubeFoldEffect = null;
            }

            if (mPanGestureDetector)
            {
                mPanGestureDetector.Detected -= OnPanGesture;
                mPanGestureDetector.Dispose();
                mPanGestureDetector = null;
            }

            if (mContent)
            {
                if (null != mCurrentEffect)
                {
                    mContent.Remove(mCurrentEffect);
                }

                content_layer.Remove(mContent);
                mContent.Dispose();
                mContent = null;
            }

            if (content_layer)
            {
                Window.Instance.RemoveLayer(content_layer);
                content_layer.Dispose();
                content_layer = null;
            }
        }
Exemplo n.º 9
0
        public void Deactivate()
        {
            if (mLayoutButton != null)
            {
                mLayoutButton.GetParent().Remove(mLayoutButton);
                mLayoutButton.Dispose();
            }

            if (mEditButton != null)
            {
                mEditButton.GetParent().Remove(mEditButton);
                mEditButton.Dispose();
            }

            if (mReplaceButton != null)
            {
                mReplaceButton.GetParent().Remove(mReplaceButton);
                mReplaceButton.Dispose();
            }

            if (mInsertButton != null)
            {
                mInsertButton.GetParent().Remove(mInsertButton);
                mInsertButton.Dispose();
            }

            if (mDeleteButton != null)
            {
                mDeleteButton.GetParent().Remove(mDeleteButton);
                mDeleteButton.Dispose();
            }

            if (mTitle != null)
            {
                mTitle.GetParent().Remove(mTitle);
                mTitle.Dispose();
            }

            if (mToolBarBackground != null)
            {
                mToolBarBackground.GetParent().Remove(mToolBarBackground);
                mToolBarBackground.Dispose();
            }

            if (mItemView != null)
            {
                mItemView.GetParent().Remove(mItemView);
                mItemView.Dispose();
            }

            if (mContentView != null)
            {
                Window.Instance.Remove(mContentView);
                mContentView.Dispose();
            }

            if (mToolBarLayer != null)
            {
                Window.Instance.RemoveLayer(mToolBarLayer);
                mToolBarLayer.Dispose();
            }

            Window.Instance.GetDefaultLayer().Behavior = Layer.LayerBehavior.Layer2D;
        }