I’ve a list of Items within my Plugin-Item, I want to compare the Items with the BaseEvent object. If I trigger a User-Defined event from the Smart Client, the BaseEvent object is basically empty. None of the fields from that object matches any field with the returned Item from ItemPickerForm..
Saving the list of events(as items):
using (MemoryStream ms = new MemoryStream())
{
var tmpList = new List<string>();
foreach(var triggerItem in triggerEvents)
{
tmpList.Add(triggerItem.SerializedItem());
}
BinaryFormatter bf = new BinaryFormatter();
bf.Serialize(ms, tmpList);
ms.Position = 0;
byte[] buffer = new byte[(int)ms.Length];
ms.Read(buffer, 0, buffer.Length);
item.Properties["triggerEvents"] = Convert.ToBase64String(buffer);
}
I don’t see any variables that add up to anything I can use to compare the 2.