コード例 #1
0
ファイル: DdeMonitor.cs プロジェクト: zhangjk1980/NDde
                private void OnLinkActivity(object sender, DdemlLinkActivityEventArgs e)
                    {
                        EventHandler<DdeLinkActivityEventArgs> 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 = _LinkActivityEvent;
                            }

                        if (copy != null)
                            copy(this, new DdeLinkActivityEventArgs(e));
                    }
コード例 #2
0
 internal DdeLinkActivityEventArgs(DdemlLinkActivityEventArgs args) : base(args)
 {
     _DdemlObject = args;
 }