public void Dispose()
        {
            Close();

            projectContentView.OpenEntity   -= new ProjectContentView.OpenEntityHandler(OnOpenProjectEntity);
            dockPanel.ActiveDocumentChanged -= new EventHandler(OnActiveDocumentChanged);
            Env.Current.ScriptManager.ScriptApplication.OpenEntity -= new FreeSCADA.Common.Scripting.Application.OpenEntityHandler(OnOpenProjectEntity);

            projectContentView.Dispose();
            logConsoleView.Dispose();
            dockPanel.Dispose();
            mruManager.Dispose();
        }