private void PrintStreamOnPrint(P4PrintStreamEventArgs e, out Stream s) { _filesPrinted++; if (_printEncoding != null) { e.TextEncoding = _printEncoding; e.UnicodeEncoding = _printEncoding; } s = _printStream; }
private void PrintStreamOnPrint(P4PrintStreamEventArgs e, out Stream s) { _filesPrinted++; if (_printEncoding != null) { e.TextEncoding = _printEncoding; e.UnicodeEncoding = _printEncoding; } s = _printStream; }
public override void OutputRecord(P4Record record) { OnPrintStreamEventHandler handler = _printEvent; // Event will be null if there are no subscribers if (handler != null) { string depotFile = record["depotFile"]; string action = record["action"]; string fileType = record["type"]; DateTime changeDate = _p4.ConvertDate(record["time"]); int change = int.Parse(record["change"]); // get the information about the file _args = new P4PrintStreamEventArgs(depotFile, action, fileType, changeDate, change); handler(_args, out _stream); } }
public override void OutputStat(Hashtable varList) { OnPrintStreamEventHandler handler = _printEvent; // Event will be null if there are no subscribers if (handler != null) { string depotFile = (string)varList[(object)"depotFile"]; string action = (string)varList[(object)"action"]; string fileType = (string)varList[(object)"type"]; DateTime changeDate = _p4.ConvertDate((string)varList[(object)"time"]); int change = int.Parse((string)varList[(object)"change"]); // get the information about the file _args = new P4PrintStreamEventArgs(depotFile, action, fileType, changeDate, change); handler(_args, out _stream); } }
public override void OutputRecord(P4Record record) { OnPrintStreamEventHandler handler = _printEvent; // Event will be null if there are no subscribers if (handler != null) { string depotFile = record["depotFile"]; string action = record["action"]; string fileType = record["type"]; DateTime changeDate = _p4.ConvertDate(record["time"]); int change = int.Parse(record["change"]); // get the information about the file _args = new P4PrintStreamEventArgs(depotFile, action, fileType, changeDate, change); handler(_args, out _stream); } }