private void VirtualStudio_ComponentAdded(object sender, IStudioComponent component) { if (component is PlaceholderStudioComponent) { AttachComponentEventHandlers(component); operationHandler.AddPlaceholder(VirtualStudioName, component.ToDto()); } else { operationHandler.AddComponent(VirtualStudioName, component.Id); } }
private void ComponentRepository_PlaceholderAdded(object sender, IStudioComponent placeholder) { AttachComponentEventHandlers(placeholder); operationHandler.AddPlaceholderToRepository(VirtualStudioName, placeholder.ToDto()); }
private void ComponentRepository_ClientAdded(object sender, IStudioComponent client) { AttachComponentEventHandlers(client); operationHandler.AddClientToRepository(VirtualStudioName, client.ToDto()); }