Beispiel #1
0
        public void CloseProject()
        {
            if (decompilerSvc.Decompiler != null && decompilerSvc.Decompiler.Project != null)
            {
                if (uiSvc.Prompt("Do you want to save any changes made to the decompiler project?"))
                {
                    if (!Save())
                    {
                        return;
                    }
                }
            }

            CloseAllDocumentWindows();
            sc.RequireService <IProjectBrowserService>().Clear();
            diagnosticsSvc.ClearDiagnostics();
            decompilerSvc.Decompiler = null;
        }
Beispiel #2
0
        public void CloseProject()
        {
            if (IsDecompilerLoaded)
            {
                if (uiSvc.Prompt("Do you want to save any changes made to the decompiler project?"))
                {
                    if (!Save())
                    {
                        return;
                    }
                }
            }

            CloseAllDocumentWindows();
            sc.RequireService <IProjectBrowserService>().Clear();
            sc.RequireService <IProcedureListService>().Clear();
            diagnosticsSvc.ClearDiagnostics();
            decompilerSvc.Decompiler = null;
            this.ProjectFileName     = null;
        }