コード例 #1
0
 internal DdeDisconnectedEventArgs(DdemlDisconnectedEventArgs args)
 {
     _DdemlObject = args;
 }
コード例 #2
0
        private void OnDisconnected(object sender, DdemlDisconnectedEventArgs internalArgs)
        {
            EventHandler<DdeDisconnectedEventArgs> copy;

            // To make this thread-safe we need to hold a local copy of the reference to the invocation list.  This works because delegates are
            //immutable.
            lock (_LockObject)
            {
                copy = _DisconnectedEvent;
            }

            if (copy != null)
            {
                copy(this, new DdeDisconnectedEventArgs(internalArgs));
            }
        }