Ejemplo n.º 1
0
        public void Close()
        {
            fileName = null;

            if (actionGroups != null && ownedGlobalActionGroups)
            {
                foreach (Stetic.Wrapper.ActionGroup ag in actionGroups)
                {
                    ag.Dispose();
                }
                actionGroups.Clear();
            }

            foreach (WidgetData wd in topLevels)
            {
                if (wd.Widget != null)
                {
                    wd.Widget.Destroy();
                }
            }

            selection = null;
            topLevels.Clear();
            widgetLibraries.Clear();

            iconFactory = new ProjectIconFactory();
        }