WindowWorkspace bug?

Mar 4, 2008 at 7:17 PM
In the CreateWindow method, you have an anonymous method which looks like this:

window.Closing += delegate(object sender, System.ComponentModel.CancelEventArgs e)
{
RaiseSmartPartClosing(e);
};

I believe it should be:

window.Closing += delegate(object sender, System.ComponentModel.CancelEventArgs e)
{
RaiseSmartPartClosing(smartPart);
};



the RaiseSmartPartClosing method is defined as protected WorkspaceCancelEventArgs RaiseSmartPartClosing(object smartPart), so i think the smartPart should be the parameter, not the event args.

I ran into this while trying to use an indexer into the Windows collection of the WindowWorkspace while trying to figure out a means to get a DialogResult back, but reading through another post made me think there is a better way. But this is probably still a bug.

Thanks,

Dave


Coordinator
Mar 5, 2008 at 12:00 PM
Thank you. This is on my TODO list.

Regards,
Kent