Azmyth.Editor.frmEditorMain.ShowPanel C# (CSharp) 메소드

ShowPanel() 공개 메소드

public ShowPanel ( PanelPosition position ) : void
position PanelPosition
리턴 void
        public void ShowPanel(PanelPosition position)
        {
            switch (position)
            {
                case PanelPosition.Top:
                    pnlTop.Visible = true;
                    splitTop.Visible = true;
                    Properties.Settings.Default.TopPanelVisible = true;
                    break;
                case PanelPosition.Bottom:
                    pnlBottom.Visible = true;
                    splitBottom.Visible = true;
                    Properties.Settings.Default.BottomPanelVisible = true;
                    break;
                case PanelPosition.Left:
                    pnlLeft.Visible = true;
                    splitLeft.Visible = true;
                    Properties.Settings.Default.LeftPanelVisible = true;
                    break;
                case PanelPosition.Right:
                    pnlRight.Visible = true;
                    splitRight.Visible = true;
                    Properties.Settings.Default.RightPanelVisible = true;
                    break;
            }

            Properties.Settings.Default.Save();
        }

Same methods

frmEditorMain::ShowPanel ( PanelPosition position, bool show ) : void