PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/V2.2/trunk/CAL/Desktop/Composite/Regions/IRegionAdapter.cs

#
C# | 33 lines | 7 code | 1 blank | 25 comment | 0 complexity | 042113b644be2d5ce4eac38b571e7c56 MD5 | raw file
  1. //===================================================================================
  2. // Microsoft patterns & practices
  3. // Composite Application Guidance for Windows Presentation Foundation and Silverlight
  4. //===================================================================================
  5. // Copyright (c) Microsoft Corporation. All rights reserved.
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
  7. // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
  8. // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  9. // FITNESS FOR A PARTICULAR PURPOSE.
  10. //===================================================================================
  11. // The example companies, organizations, products, domain names,
  12. // e-mail addresses, logos, people, places, and events depicted
  13. // herein are fictitious. No association with any real company,
  14. // organization, product, domain name, email address, logo, person,
  15. // places, or events is intended or should be inferred.
  16. //===================================================================================
  17. namespace Microsoft.Practices.Composite.Regions
  18. {
  19. /// <summary>
  20. /// Defines an interfaces to adapt an object and bind it to a new <see cref="IRegion"/>.
  21. /// </summary>
  22. public interface IRegionAdapter
  23. {
  24. /// <summary>
  25. /// Adapts an object and binds it to a new <see cref="IRegion"/>.
  26. /// </summary>
  27. /// <param name="regionTarget">The object to adapt.</param>
  28. /// <param name="regionName">The name of the region to be created.</param>
  29. /// <returns>The new instance of <see cref="IRegion"/> that the <paramref name="regionTarget"/> is bound to.</returns>
  30. IRegion Initialize(object regionTarget, string regionName);
  31. }
  32. }