Пример #1
0
        public void FileSave()
        {
            ITabbedFileDocument fileDoc = Global.DockManager.ActiveDocument as ITabbedFileDocument;

            if (fileDoc == null)
            {
                return;
            }
            fileDoc.SaveContent();
            this._recentFilesManager.Add(fileDoc.ContentFile);
        }
Пример #2
0
 public void FileSaveAll()
 {
     foreach (TabbedDocument document in Global.DockManager.GetDocumentArray())
     {
         ITabbedFileDocument fileDoc = document as ITabbedFileDocument;
         if (fileDoc == null)
         {
             continue;
         }
         fileDoc.SaveContent();
     }
 }