WebControlToolboxItem.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. using System;
  2. using System.Collections;
  3. using System.ComponentModel.Design;
  4. using System.ComponentModel;
  5. using System.Drawing.Design;
  6. using System.Runtime.Serialization;
  7. using System.Web.UI.WebControls;
  8. namespace System.Web.UI.Design
  9. {
  10. [MonoTODO]
  11. public class WebControlToolboxItem : ToolboxItem
  12. {
  13. #region Public Instance Constructors
  14. public WebControlToolboxItem ()
  15. {
  16. toolData = null;
  17. persistChildren = -1;
  18. }
  19. [MonoTODO]
  20. public WebControlToolboxItem (Type type)
  21. {
  22. toolData = null;
  23. persistChildren = -1;
  24. }
  25. #endregion Public Instance Constructors
  26. #region Override implementation of ToolboxItem
  27. [MonoTODO]
  28. protected override IComponent[] CreateComponentsCore (IDesignerHost host)
  29. {
  30. throw new NotImplementedException ();
  31. }
  32. [MonoTODO]
  33. protected override void Serialize (SerializationInfo info, StreamingContext context)
  34. {
  35. base.Serialize (info, context);
  36. if (this.toolData != null)
  37. {
  38. info.AddValue ("ToolData", this.toolData);
  39. }
  40. if (this.persistChildren != -1)
  41. {
  42. info.AddValue ("PersistChildren", this.persistChildren);
  43. }
  44. }
  45. [MonoTODO]
  46. protected override void Deserialize (SerializationInfo info, StreamingContext context)
  47. {
  48. base.Deserialize (info, context);
  49. toolData = info.GetString ("ToolData");
  50. persistChildren = info.GetInt32 ("PersistChildren");
  51. }
  52. [MonoTODO]
  53. public override void Initialize (Type type)
  54. {
  55. throw new NotImplementedException ();
  56. }
  57. #endregion Override implementation of ToolboxItem
  58. #region Public Instance Methods
  59. [MonoTODO]
  60. public object GetToolAttributeValue (IDesignerHost host, Type attributeType)
  61. {
  62. throw new NotImplementedException ();
  63. }
  64. [MonoTODO]
  65. public string GetToolHtml (IDesignerHost host)
  66. {
  67. throw new NotImplementedException ();
  68. }
  69. [MonoTODO]
  70. public Type GetToolType (IDesignerHost host)
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. #endregion Public Instance Methods
  75. #region Private Instance Fields
  76. private int persistChildren;
  77. private string toolData;
  78. #endregion Private Instance Fields
  79. }
  80. }