/// <summary> /// Gets a PrintDocument to work with the standard Windows print dialogs</summary> /// <returns>PrintDocument to work with the standard Windows print dialogs</returns> public PrintDocument GetPrintDocument() { // static allocation, to remember print settings if (s_printDocument == null) s_printDocument = new CircuitPrintDocument(); s_printDocument.SetDocument( DomNode.Cast<CircuitEditingContext>(), DomNode.Cast<ViewingContext>()); return s_printDocument; }
/// <summary> /// Gets a PrintDocument to work with the standard Windows print dialogs</summary> /// <returns>PrintDocument to work with the standard Windows print dialogs</returns> public PrintDocument GetPrintDocument() { // static allocation, to remember print settings if (s_printDocument == null) { s_printDocument = new CircuitPrintDocument(); } s_printDocument.SetDocument( DomNode.Cast <VisualScriptEditor.VisualScriptEditingContext>(), DomNode.Cast <ViewingContext>()); return(s_printDocument); }