Пример #1
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);
            }
        }
Пример #2
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);
            }
        }