Ejemplo n.º 1
0
        /// <summary>
        /// Use view ids stored in DockPanel hints to restore the associated view
        /// </summary>

        void RestoreViewsFromHints(
            bool setView,
            bool clearHint)
        {
            return;             // noop

#if false
            int id;

            foreach (DockPanel dp0 in DockManager.Panels)
            {
                if (setView)
                {
                    dp0.Tag = null;
                }

                string hint = dp0.Hint;
                if (clearHint)
                {
                    dp0.Hint = "";
                }

                if (Lex.IsNullOrEmpty(hint))
                {
                    continue;
                }
                if (!int.TryParse(hint, out id))
                {
                    continue;
                }
                if (setView)
                {
                    ResultsViewProps v = ResultsPage.GetViewFromIdForPage(id);
                    if (v != null)
                    {
                        dp0.Tag = v;
                    }
                }
            }

            return;
#endif
        }