private static void FormOnKeyPressed(object sender, DataReceivedEvenArgs dataReceivedEvenArgs) { Console.WriteLine(dataReceivedEvenArgs.Message); }
protected virtual void OnThresholdRead(DataReceivedEvenArgs e) { var handler = this.HookKeyPressed; if (handler != null) { handler(this, e); } }