protected void ControlsToData()
{
if( trigger == null )
trigger = new Trigger();
trigger.Description = edtDescription.GetValue<string>();
trigger.name = edtName.GetValue<string>();
trigger.TriggerProperties = propertyListControl.Properties;
trigger.TriggerPorts = portListControl.Ports;
}