Example #1
0
        private void SetWindowState(WindowsStates newState)
        {
            return;

            int diff = 0;

            switch (newState)
            {
            case WindowsStates.StatusOnly:
                pinUp.Direction = Direction.Expanding;
                pinUp1.Visible  = false;
                diff            = Height - 50;
                break;

            case WindowsStates.OneLine:
                pinUp.Direction = Direction.Expanding;
                diff            = Height - 120;
                pinUp1.Visible  = true;
                autoRestore     = true;
                break;

            case WindowsStates.MultiLine:
                pinUp.Direction = Direction.Collapsing;
                diff            = Height - 345;
                pinUp1.Visible  = true;
                autoRestore     = true;
                break;

            default:
                break;
            }
            Top                += diff;
            Height             -= diff;
            state               = newState;
            SkyBall.Space       = Earth3d.MainWindow.Space;
            SkyBall.ShowSkyball = SkyBall.Space && state != WindowsStates.StatusOnly;
            //SkyBall.RefreshHint();
            //contextResults.Invalidate();
        }
        private void SetWindowState(WindowsStates newState)
        {
            var diff=0;

            switch (newState)
            {
                case WindowsStates.StatusOnly:
                    pinUp.Direction = Direction.Expanding;
                    pinUp1.Visible = false;
                    diff = Height - 50;
                    break;
                case WindowsStates.OneLine:
                    pinUp.Direction = Direction.Expanding;
                    diff = Height - 120;
                    pinUp1.Visible = true;
                    autoRestore = true;
                    break;
                case WindowsStates.MultiLine:
                    pinUp.Direction = Direction.Collapsing;
                    diff = Height - 345;
                    pinUp1.Visible = true;
                    autoRestore = true;
                    break;
                default:
                    break;
            }
            Top += diff;
            Height -= diff;
            state = newState;
            SkyBall.Space = Earth3d.MainWindow.Space;
            SkyBall.ShowSkyball = SkyBall.Space && state != WindowsStates.StatusOnly;
            SkyBall.RefreshHint();
            contextResults.Invalidate();
        }