Do you have a question?

First Name:
Surname:
Email:
Phone:
Message:
Get Audio Code

why can not Trigger the event obj.InternalActiveChanged += delegate(object sender, EventArgs e)
Last Post 24 Mar 2009 08:20 AM by tom. 0 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
tomUser is Offline
New Member
New Member
Posts:30

--
24 Mar 2009 08:20 AM  

why can not Trigger the event       when sender is "ClearCanvas.Desktop.Workspace"

  obj.InternalActiveChanged += delegate(object sender, EventArgs e)
            {
                OnItemActivationChangedInternal(new ItemEventArgs((T)sender));
            };

can not exec the event fun:

        protected sealed override void OnItemActivationChangedInternal(ItemEventArgs args)
        {
            if (args.Item.Active)
            {
                // activated
                Workspace lastActive = _activeWorkspace;
                // set this prior to firing any events, so that a call to ActiveWorkspace property will return correct value
                _activeWorkspace = args.Item;
                if (lastActive != null)
                {
                    lastActive.RaiseActiveChanged();
                }
                _activeWorkspace.RaiseActiveChanged();
               
            }
        }

so activeWorkspace is null throw the execption.

please tell me?

You are not authorized to post a reply.

Active Forums 4.1