40 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Text;
 | |
| 
 | |
| namespace DevComponents.DotNetBar
 | |
| {
 | |
|     /// <summary>
 | |
|     /// Represents arguments for SerializeItem event which allows you to add custom serialization data to definitions saved by control.
 | |
|     /// </summary>
 | |
|     public class SerializeItemEventArgs : EventArgs
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// Gets reference to item being serialized or de-serialized.
 | |
|         /// </summary>
 | |
|         public BaseItem Item = null;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets reference to instance of XmlElement that item is serialized to or is being de-serialized from. You should not change any data directly on this element.
 | |
|         /// </summary>
 | |
|         public System.Xml.XmlElement ItemXmlElement = null;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets the reference to XmlElement that you can serialize to or de-serialize any custom data from. You can add child elements or set the attributes on
 | |
|         /// this XmlElement when handling SerializeItem event. When handling DeserializeItem event you can load same data from this element.
 | |
|         /// </summary>
 | |
|         public System.Xml.XmlElement CustomXmlElement = null;
 | |
| 
 | |
|         public SerializeItemEventArgs(BaseItem item, System.Xml.XmlElement itemXmlElement, System.Xml.XmlElement customXmlElement)
 | |
|         {
 | |
|             this.Item = item;
 | |
|             this.ItemXmlElement = itemXmlElement;
 | |
|             this.CustomXmlElement = customXmlElement;
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// Defines delegate for SerializeItem event.
 | |
|     /// </summary>
 | |
|     public delegate void SerializeItemEventHandler(object sender, SerializeItemEventArgs e);
 | |
| }
 |