示例#1
0
 private void DocumentSaved(object sender, TextDocumentFileActionEventArgs e)
 {
     if (e.FileActionType == FileActionTypes.ContentSavedToDisk)
     {
         StylesheetUpdated?.Invoke(this, new StylesheetUpdatedEventArgs(e.FilePath));
     }
 }
示例#2
0
        private void DocumentSaved(object sender, TextDocumentFileActionEventArgs e)
        {
            if (e.FileActionType == FileActionTypes.ContentLoadedFromDisk)
            {
                return;
            }

            string fileName = Path.GetFileName(e.FilePath);

            if (fileName == MarkdownEditorPackage.Options.CustomStylesheetFileName)
            {
                StylesheetUpdated?.Invoke(this, EventArgs.Empty);
            }
        }