Exemplo n.º 1
0
 private void PrintStreamOnPrint(P4PrintStreamEventArgs e, out Stream s)
 {
     _filesPrinted++;
     if (_printEncoding != null)
     {
         e.TextEncoding    = _printEncoding;
         e.UnicodeEncoding = _printEncoding;
     }
     s = _printStream;
 }
Exemplo n.º 2
0
 private void PrintStreamOnPrint(P4PrintStreamEventArgs e, out Stream s)
 {
     _filesPrinted++;
     if (_printEncoding != null)
     {
         e.TextEncoding = _printEncoding;
         e.UnicodeEncoding = _printEncoding;
     }
     s = _printStream;
 }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
        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);
            }
        }