public int OnAfterSave(uint docCookie) { var info = _runningDocumentTable.GetDocumentInfo(docCookie); var path = info.Moniker; DocumentSaved?.Invoke(this, path); return(VSConstants.S_OK); }
private async void HandleDocumentSaved(object sender, EventArgs e) { var analysedDocument = await GetAnalysisDocument(); if (analysedDocument != null) { DocumentSaved?.Invoke(this, new DocumentSavedEventArgs { Document = analysedDocument }); } }
private void DocumentEvents_DocumentSaved(Document document) { var analysedDocument = GetAnalysisDocument(document); if (analysedDocument != null) { DocumentSaved?.Invoke(this, new DocumentSavedEventArgs { Document = analysedDocument }); } }
private void SaveDocument() { ChangeStatus(ServiceActivity.Saving); try { var sequence = Interlocked.Exchange(ref _sequenceFileNames, new ConcurrentBag <string>()); var destinationPath = _pdfService.SaveDocument(sequence.Reverse(), GenerateUniqueFileName()); if (destinationPath != null) { DocumentSaved?.Invoke(this, new DocumentEventArgs(destinationPath)); } } catch (Exception ex) { _logger.Error(ex.Message); throw; } ChangeStatus(ServiceActivity.Waiting); }
/// <summary> /// Invokes handlers of the <see cref="DocumentSaved"/> event. /// </summary> /// <param name="document">The saved document.</param> protected void NotifyDocumentSaved(IDocument document) { DocumentSaved?.Invoke(this, new DocumentWindowEventArgs(document)); }
public static void RaiseDocumentSaved(Document document) { DocumentSaved?.Invoke(document); }
private void OnCurrentDocumentSaved(object sender, EventArgs e) { DocumentSaved?.Invoke(sender, e); }
protected virtual void OnDocumentSaved(DevEnviromentDocument e) { DocumentSaved?.Invoke(this, e); }
public int OnAfterSave(uint docCookie) { DocumentSaved?.Invoke(docCookie); return(VSConstants.S_OK); }
public void FakeNotification() { DocumentSaved.Invoke(new Document()); }