protected virtual void OnRaiseLocationReport(LocationHeadingEventArg e) { EventHandler <LocationHeadingEventArg> handler = RaiseLocationReport; if (handler != null) { handler(this, e); } }
static void controller_RaiseLocationReport(object sender, LocationHeadingEventArg e) { Console.WriteLine(string.Format("{0}{1} {2}", e.Location.Y, e.Location.X, e.Heading).ToLower()); }