Code for XBee Control in C#