示例#1
0
                private void OnErrorActivity(object sender, DdemlErrorActivityEventArgs e)
                    {
                        EventHandler<DdeErrorActivityEventArgs> 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 = _ErrorActivityEvent;
                            }

                        if (copy != null)
                            copy(this, new DdeErrorActivityEventArgs(e));
                    }
示例#2
0
 internal DdeErrorActivityEventArgs(DdemlErrorActivityEventArgs args) : base(args)
     {
         _DdemlObject = args;
     }