Beispiel #1
0
 public CheckBox(string label, QLBoolean value, bool readOnly, Action <IValue> valueChangedHandler)
 {
     _valueChangedHandler = valueChangedHandler;
     _checkBox            = new System.Windows.Forms.CheckBox
     {
         AutoSize = true,
         Text     = label,
         Checked  = value.Value,
         Enabled  = !readOnly
     };
     _checkBox.CheckedChanged += _checkBox_CheckedChanged;
 }
 public virtual void Visit(QLBoolean value)
 {
 }
 private static bool Equal(QLBoolean a, QLBoolean b) => a.Value == b.Value;
 public void Visit(QLBoolean value)
 {
     _result = value;
 }
 public void Visit(QLBoolean value)
 {
     _result = new CheckBox(_label, value, _readOnly, _valueChangedHandler);
 }