コード例 #1
0
        /// <summary>
        /// Hides all except one
        /// </summary>
        /// <param name="section">One to keep open</param>
        protected void HideAllExcept(UISection section)
        {
            var cacheState = section.IsToggled;

            HideAllSections();
            if (cacheState)
            {
                ToggledSection(section);
            }
        }
コード例 #2
0
 /// <summary>
 /// Hide/Un-hide specific section
 /// </summary>
 /// <param name="section"></param>
 protected void ToggledSection(UISection section)
 {
     section.IsToggled = !section.IsToggled;
     section.UiControllers.ForEach(controller => controller.Toggle(section.IsToggled));
 }