Example #1
0
        public void MaximisePaneThree()
        {
            if (!PaneThreeVisible)
            {
                throw new InvalidOperationException("Pane three cannot be maximised,"
                                                    + " because it is not visible.");
            }
            if (m_maximisedPane == 3)
            {
                throw new InvalidOperationException("Pane three cannot be maximised,"
                                                    + " because it is already maximised.");
            }

            splitBottom.MaximiseSecondPane();
            m_maximisedPane = 3;
        }
Example #2
0
        public void MaximisePaneTwo()
        {
            if (!PaneTwoVisible)
            {
                throw new InvalidOperationException("Pane two cannot be maximised,"
                                                    + " because it is not visible.");
            }
            if (m_maximisedPane == 2)
            {
                throw new InvalidOperationException("Pane two cannot be maximised,"
                                                    + " because it is already maximised.");
            }

            splitBottom.MaximiseFirstPane();
            splitTop.MaximiseSecondPane();
            m_maximisedPane = 2;
        }