Пример #1
0
        protected virtual void OnRaiseLocationReport(LocationHeadingEventArg e)
        {
            EventHandler <LocationHeadingEventArg> handler = RaiseLocationReport;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
 static void controller_RaiseLocationReport(object sender, LocationHeadingEventArg e)
 {
     Console.WriteLine(string.Format("{0}{1} {2}", e.Location.Y, e.Location.X, e.Heading).ToLower());
 }