QL.Interpreter.Controls.GUIQuestion.GUIQuestion C# (CSharp) Method

GUIQuestion() public method

public GUIQuestion ( QLMemory memory, string identifier, string label, bool isComputed, ExpressionBase showCondition, ChangedEventHandler changeHandler ) : System.Collections.Generic
memory QLMemory
identifier string
label string
isComputed bool
showCondition QL.QLClasses.Expressions.ExpressionBase
changeHandler ChangedEventHandler
return System.Collections.Generic
        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;
        }