Esempio n. 1
0
        public static void SetContainerComponents(WidgetContainer widgets)
        {
            widgets.ClearComponents();

            if (ThemeHelper.HasToShowErrorPopup(out var type))
            {
                widgets.Push <PatchErrorPopup>();
            }

            /*else if (ThemeHelper.HasToSetProjectName())
             * {
             * widgets.Push<PatchProjectSettings>();
             * }*/
            else if (ThemeHelper.HasToShowTutorial())
            {
                widgets.Push <PatchTutorial>();
            }
            else
            {
                widgets.Push <PatchTopbar>();
                widgets.Push <PatchWindow>();
                widgets.Push <PatchSidebar>();
                widgets.Push <PatchTipPopup>();
                widgets.Push <PatchPopup>();
                widgets.Push <PatchErrorPopup>();
            }
        }