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

编辑器/阅读器

开发平台:

C#

  1. // -- FILE ------------------------------------------------------------------
  2. // name       : HiddenVariable.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.Drawing;
  11. using System.ComponentModel;
  12. using System.Web.UI.WebControls;
  13. namespace Itenso.WebUserForms.Controls
  14. {
  15. #if VAR_FIELDS
  16. // ------------------------------------------------------------------------
  17. [DefaultProperty( "FieldName" )]
  18. [Designer( typeof( ExpressionFieldDesigner ) )]
  19. [ToolboxBitmap( typeof( ResFinder ), "Itenso.WebUserForms.Controls.Images.HiddenVariable.png" )]
  20. public class HiddenVariable : System.Web.UI.WebControls.HiddenField, IExpressionField
  21. {
  22. // ----------------------------------------------------------------------
  23. public HiddenVariable()
  24. {
  25. } // HiddenVariable
  26. // ----------------------------------------------------------------------
  27. [DefaultValue( "" )]
  28. [Description( "HiddenVariable Form Field Name" )]
  29. [Category( "Web User Forms" )]
  30. public string FieldName
  31. {
  32. get { return this.fieldName; }
  33. set { this.fieldName = value; }
  34. } // FieldName
  35. // ----------------------------------------------------------------------
  36. [DefaultValue( "" )]
  37. [Description( "HiddenVariable Form Field Value" )]
  38. [Category( "Web User Forms" )]
  39. public string FieldValue
  40. {
  41. get { return Value; }
  42. set { Value = value; }
  43. } // FieldValue
  44. // ----------------------------------------------------------------------
  45. [DefaultValue( "" )]
  46. [Description( "HiddenVariable Form Field Expression" )]
  47. [Category( "Web User Forms" )]
  48. public string FieldExpression
  49. {
  50. get { return this.fieldExpression; }
  51. set { this.fieldExpression = value; }
  52. } // FieldExpression
  53. // ----------------------------------------------------------------------
  54. [Browsable( false )]
  55. bool IUserFormField.AllowEdit
  56. {
  57. get { return false; }
  58. set { ; }
  59. } // AllowEdit
  60. // ----------------------------------------------------------------------
  61. public override string ToString()
  62. {
  63. return FormFieldTool.GetFieldDescription( this );
  64. } // ToString
  65. // ----------------------------------------------------------------------
  66. // members
  67. private string fieldName;
  68. private string fieldExpression;
  69. } // class HiddenVariable
  70. #endif // VAR_FIELDS
  71. } // namespace Itenso.WebUserForms.Controls
  72. // -- EOF -------------------------------------------------------------------