コード例 #1
0
ファイル: ThreePanes.cs プロジェクト: formist/LinkMe
        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;
        }
コード例 #2
0
ファイル: ThreePanes.cs プロジェクト: formist/LinkMe
        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;
        }