+2009-09-10 Ivan N. Zlatev <contact@i-nz.net>
+
+ * DesignSurface.cs: Provide the default implementation of the
+ ISelectionService in the DesignSurface service container.
+ [Fixes bug #538037]
+
2009-09-07 Ivan N. Zlatev <contact@i-nz.net>
* DesignSurface.cs: Don't be so strict and allow for the users
_serviceContainer.AddService (typeof (IExtenderProviderService), (IExtenderProviderService) extenderService);
_serviceContainer.AddService (typeof (IExtenderListService), (IExtenderListService) extenderService);
_serviceContainer.AddService (typeof (DesignSurface), this);
+
+ SelectionService selectionService = new SelectionService (_serviceContainer);
+ _serviceContainer.AddService (typeof (ISelectionService), (ISelectionService) selectionService);
}
protected ServiceContainer ServiceContainer {
+2009-09-10 Ivan N. Zlatev <contact@i-nz.net>
+
+ * DocumentDesigner.cs: If there is already a ISelectionService registered
+ in the ServiceContainer but it's not an IUISelectionService (WinForms
+ specific) then replace it with one.
+ [Fixes bug #538037]
+
2009-09-09 Ivan N. Zlatev <contact@i-nz.net>
* ParentControlDesigner.cs, ControlDesigner.cs, UISelectionService.cs,
private void InitializeSelectionService ()
{
+ ISelectionService selection = this.GetService (typeof (ISelectionService)) as ISelectionService;
+ if (selection != null && selection is IUISelectionService)
+ return;
+
IServiceContainer serviceContainer = this.GetService (typeof (IServiceContainer)) as IServiceContainer;
- if (serviceContainer.GetService (typeof (ISelectionService)) != null)
+ if (selection != null)
serviceContainer.RemoveService (typeof (ISelectionService));
- UISelectionService selection = new UISelectionService (serviceContainer);
+ selection = new UISelectionService (serviceContainer);
serviceContainer.AddService (typeof (ISelectionService), (ISelectionService) selection);
serviceContainer.AddService (typeof (IUISelectionService), (IUISelectionService) selection);