UserFormInfoDesigner.cs
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:1k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. // -- FILE ------------------------------------------------------------------
  2. // name       : UserFormInfoDesigner.cs
  3. // project    : Itenso Web User Forms
  4. // created    : Jani Giannoudis - 2008.10.30
  5. // language   : c#
  6. // environment: .NET 2.0
  7. // copyright  : (c) 2008 by Itenso GmbH, Switzerland
  8. // --------------------------------------------------------------------------
  9. using System;
  10. using System.Web.UI;
  11. using System.Web.UI.Design;
  12. using System.ComponentModel;
  13. namespace Itenso.WebUserForms.Controls
  14. {
  15. // ------------------------------------------------------------------------
  16. public class UserFormInfoDesigner : ControlDesigner
  17. {
  18. // ----------------------------------------------------------------------
  19. public override string GetDesignTimeHtml()
  20. {
  21. return CreatePlaceHolderDesignTimeHtml( null );
  22. } // GetDesignTimeHtml
  23. // ----------------------------------------------------------------------
  24. public override void Initialize( IComponent component )
  25. {
  26. // Throw an exception if the designer is attached
  27. // to a control for which it is not intended
  28. if ( !( component is UserFormInfoControl ) )
  29. {
  30. throw new InvalidOperationException(
  31. this.GetType().FullName + " only supports controls derived from UserFormInfoControl" );
  32. }
  33. base.Initialize( component );
  34. } // Initialize
  35. } // class UserFormInfoDesigner
  36. } // namespace Itenso.WebUserForms.Controls
  37. // -- EOF -------------------------------------------------------------------