/// <summary>
        /// Runs workbench cleanup.
        /// Is called by ICSharpCode.SharpDevelop.Sda and should not be called manually!
        /// </summary>
        public static void OnWorkbenchUnloaded()
        {
            Project.ProjectService.CloseSolution();
            NavigationService.Unload();

            ApplicationStateInfoService.UnregisterStateGetter(activeContentState);

            WorkbenchUnloaded(null, EventArgs.Empty);

            FileService.Unload();
        }
Example #2
0
        /// <summary>
        /// Runs workbench cleanup.
        /// Is called by ICSharpCode.SharpDevelop.Sda and should not be called manually!
        /// </summary>
        public static void OnWorkbenchUnloaded()
        {
            //if (!Project.ProjectService.IsClosingCanceled()) {
            if (true)
            {
                //Project.ProjectService.CloseSolution();//by hanz
                //NavigationService.Unload();

                ApplicationStateInfoService.UnregisterStateGetter(activeContentState);

                WorkbenchUnloaded(null, EventArgs.Empty);

                FileService.Unload();
            }
        }