protected virtual Boolean LogDebug(String Data) { DebugEventArgs args = new DebugEventArgs(Data); if (Debug != null) { Debug(this, args); } return(true); }
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); }
protected void On_Debug(object sender, ScpControl.DebugEventArgs e) { LogDebug(e.Time, e.Data); }