namespace MP.IOC.Components.Layout { public partial class MainLayout : IDisposable { #region Public Methods public void Dispose() { GC.Collect(); } public void OnHideSearch() { ShowSearch = false; } public void OnShowSearch() { ShowSearch = true; } #endregion Public Methods #region Protected Properties protected bool annualAuthOk { get; set; } = false; protected string cssRow { get; set; } = "bottom-row bg-primary"; protected bool navLarge { get; set; } = true; protected string sideClass { get; set; } = "sidebar"; #endregion Protected Properties #region Protected Methods protected void UpdateNavDisplay() { navLarge = !navLarge; sideClass = navLarge ? "sidebar" : "sidebarSmall"; } #endregion Protected Methods #region Private Properties private bool ShowSearch { get; set; } = false; #endregion Private Properties } }