Beispiel #1
0
        protected virtual Boolean LogDebug(String Data)
        {
            DebugEventArgs args = new DebugEventArgs(Data);

            if (Debug != null)
            {
                Debug(this, args);
            }

            return(true);
        }
Beispiel #2
0
        protected virtual Boolean LogDebug(byte[] array)
        {
            string dataStr = "";

            for (byte i = 0; i < array.Length; i++)
            {
                dataStr = String.Format("{0}{1:X2} ", dataStr, array[i]);
            }
            DebugEventArgs args = new DebugEventArgs(dataStr);

            On_Debug(this, args);
            return(true);
        }
Beispiel #3
0
 protected void On_Debug(object sender, ScpControl.DebugEventArgs e)
 {
     LogDebug(e.Time, e.Data);
 }