public GUIQuestion(QLMemory memory, string identifier, string label, bool isComputed, ExpressionBase showCondition, ChangedEventHandler changeHandler)
{
_hideConditions = new List<ExpressionBase>();
_showCondition = showCondition;
_memory = memory;
_identifier = identifier;
_isComputed = isComputed;
_label = new Label
{
Content = label,
Width = 300,
Margin = new Thickness(0, 0, 25, 0),
HorizontalContentAlignment = HorizontalAlignment.Right
};
_input = _memory.GetDeclaredValue(_identifier).CreateInputControl(_identifier, _memory, _isComputed);
_input.OnChanged = changeHandler;
//ui properties
Width = 600;
Margin = new Thickness(0, 10, 0 , 0);
Orientation = Orientation.Horizontal;
}