예제 #1
0
        private void UpdateSplitters(ABMCommonRoutines.enModes mode)
        {
            bool updateVerticalSplitter   = false;
            bool updateHorizontalSplitter = false;

            switch (mode)
            {
            case ABMCommonRoutines.enModes.Normal:
                updateHorizontalSplitter = !HorizontalSplitter.ControlToHide.Visible;
                updateVerticalSplitter   = !VerticalSplitter.ControlToHide.Visible;
                break;

            case ABMCommonRoutines.enModes.New:
            case ABMCommonRoutines.enModes.Edition:
                updateHorizontalSplitter = HorizontalSplitter.ControlToHide.Visible;
                break;

            case ABMCommonRoutines.enModes.Query:
            case ABMCommonRoutines.enModes.Search:
                updateVerticalSplitter   = VerticalSplitter.ControlToHide.Visible;
                updateHorizontalSplitter = HorizontalSplitter.ControlToHide.Visible;
                break;
            }

            if (updateVerticalSplitter)
            {
                VerticalSplitter.ToggleState();
            }

            if (updateHorizontalSplitter)
            {
                HorizontalSplitter.ToggleState();
            }
        }
예제 #2
0
 protected void Splitter2_Toggle_Status()
 {
     VerticalSplitter.ToggleState();
 }