示例#1
0
        /// <summary>
        /// Parse event from GPS thread to parent thread
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="e">GPSEventArgs</param>
        private void GPSEventHandler(object sender, GPSEventArgs e)
        {
            ControlInvoker controlInvoker;

            controlInvoker = new ControlInvoker(this._Parent);
            controlInvoker.Invoke(new MethodCallInvoker(ReturnEvent), e);               //Send event to parent thread
        }
示例#2
0
 /// <summary>
 /// Parse event from GPS thread to parent thread
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="e">GPSEventArgs</param>
 private void GPSEventHandler(object sender, GPSEventArgs e)
 {
     ControlInvoker controlInvoker;
     controlInvoker = new ControlInvoker(this._Parent);
     controlInvoker.Invoke (new MethodCallInvoker (ReturnEvent), e); //Send event to parent thread
 }