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

编辑器/阅读器

开发平台:

C#

  1. // -- FILE ------------------------------------------------------------------
  2. // name       : UserForm.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. namespace Itenso.WebUserForms.Controls
  11. {
  12. // ------------------------------------------------------------------------
  13. public class UserForm : IUserForm
  14. {
  15. // ----------------------------------------------------------------------
  16. public UserForm( IUserFormHeader header )
  17. {
  18. if ( header == null )
  19. {
  20. throw new ArgumentNullException( "header" );
  21. }
  22. this.header = header;
  23. } // UserForm
  24. // ----------------------------------------------------------------------
  25. public IUserFormFieldCollection Fields
  26. {
  27. get { return this.fields; }
  28. } // Fields
  29. // ----------------------------------------------------------------------
  30. public IUserFormCollection Subforms
  31. {
  32. get { return this.subforms; }
  33. } // Subforms
  34. // ----------------------------------------------------------------------
  35. public IUserFormHeader Header
  36. {
  37. get { return this.header; }
  38. } // Header
  39. // ----------------------------------------------------------------------
  40. // members
  41. private readonly IUserFormHeader header;
  42. private readonly UserFormFieldCollection fields = new UserFormFieldCollection();
  43. private readonly UserFormCollection subforms = new UserFormCollection();
  44. } // class UserForm
  45. } // namespace Itenso.WebUserForms.Controls
  46. // -- EOF -------------------------------------------------------------------