Beispiel #1
0
        private void PrepareWorkspaceState()
        {
            if (!Program.MainForm.ApplicationIsClosing || String.IsNullOrEmpty(this.Content))
            {
                return;
            }

            RecoverContent.Save(RecoverContent.WorkspaceFolder, RecoverContent.CreateTextContent(this));
        }
Beispiel #2
0
        private void SaveTextEditors()
        {
            IList <ITextEditor> editors = HostServicesSingleton.HostServices.EditorServices.TextEditors;

            foreach (ITextEditor editor in editors)
            {
                if (String.IsNullOrEmpty(editor.Content.Trim()))
                {
                    continue;
                }

                RecoverContent.Save(RecoverContent.CreateTextContent(editor));
            }
        }