public static void WriteDataCallback(IAsyncResult asyncResult) { Tap.EndWrite(asyncResult); WaitObject2.Set(); }