public JSProcessCitationResult RestoreProcessorState(object[] jsCitations) { if (jsCitations == null) throw new ArgumentNullException("jsCitations"); var jsCitationArray = CreateJSArray(jsCitations); var jsResult = CallMethod(RebuildProcessorStateCommand, jsCitationArray, null); return CreateJSProcessCitationResult(jsResult); }
public void EditCitation(Field field, JSInlineCitation citation) { try { SuspendRedraw(); var fieldCodeText = CreateFieldCodeText(citation); field.Code.Text = fieldCodeText; // Update the cache RemoveCitation(fieldCodeText); SetCitation(fieldCodeText, citation); FormatCitationField(field); var jsCitations = Reset(); var jsResult = citeProc.RestoreProcessorState(jsCitations); ApplyResult(jsResult); UpdateBibliographyFields(); } finally { ResumeRedraw(); } }