I am trying to write a custom wizard and I need to store a List of complex objects as one of the elements that will be set up when the event is created. What I am really struggling with is the implementation in the EventItem class of the designer assembly. Below is the class and the property declaration that I am trying to use.
private List<ComplexObject> m_ComplexObjects;
public List<ComplexObject> ComplexObjects
{
get
{
return m_ComplexObjects;
}
set
{
base.OnNotifyPropertyChanged<List<ComplexObject>>("ComplexObjects", ref m_ComplexObjects, value);
}
}
public class ComplexObject {
public ComplexObject(string name, string type, K2Field value)
{
Name = name;
Type = type;
Value = value;
}
public string Name { get; set; }
public string Type { get; set; }
public K2Field Value { get; set; }
}
I am really unsure how to implement the code for the list (ComplexObjects property) in :
protected override void OnLoad(ISerializationInfo content)
protected override void OnSave(ISerializationInfo content)
protected override void PrepareConfigurationForBuild()
any assistance would be greatly appreciated. I have also attached a sample EventItem cs file.
Thanks in Advance!