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

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