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(); } }
protected void Splitter2_Toggle_Status() { VerticalSplitter.ToggleState(); }