//public MetadataFieldEditor(string name)
 //    : this(name, string.Empty)
 //{
 //}
 public MetadataFieldEditor(string name, MetadataWrapper metadataWrapper)
 {
     InitializeComponent();
     _label.Text = name;
     _valueTextbox.Text = metadataWrapper.Value;
     _metadataWrapper = metadataWrapper;
 }
        public EventDataWrapper(EventDefinitionData eventDefinition)
        {
            EventDefinition = eventDefinition;

            MetadataValues = new MetadataWrapper[eventDefinition.MetadataFields.Length];
            for (int i = 0; i < MetadataValues.Length; i++)
            {
                MetadataValues[i] = new MetadataWrapper();
            }
        }