Пример #1
0
 // Method
 // Receive and display the trim servo's from the server onto the UI
 //
 void trimservos_TrimServosHandler(object sender, TrimServosEventArgs e)
 {
     Array.Copy(e.TrimServos, saServo, saServo.Length);
     trimservosSlider(saServo);
 }
Пример #2
0
        // This will be our starting point of our event -- it will
        // create AccelerationChangeEventArgs, and then raises
        // the event, passing AccelerationChangeEventArgs.
        //
        private void ReceivedTrimServos(string[] trimservos)
        {
            TrimServosEventArgs TrimServosEvents = new TrimServosEventArgs(trimservos);

            // Now, raise the event by invoking the delegate. Pass in
            // the objects that initiated the event (this) as wel as
            // AccelerationChangeEventArgs.
            // The call must match the signature of the AccelerationChangeEventHandler.
            if (TrimServosHandler != null)
            {
                TrimServosHandler(this, TrimServosEvents);
            }
        }