private static QLInteger Multiply(QLInteger a, QLInteger b) => new QLInteger(a.Value * b.Value);
private static QLMoney Multiply(QLInteger a, QLMoney b) => new QLMoney(a.Value * b.Value);
private static QLInteger Add(QLInteger a, QLInteger b) => new QLInteger(a.Value + b.Value);
private static QLInteger Subtract(QLInteger a, QLInteger b) => new QLInteger(a.Value - b.Value);
private static bool Equal(QLInteger a, QLInteger b) => a.Value == b.Value;
private static bool GreaterThan(QLInteger a, QLInteger b) => a.Value > b.Value;
private static bool LessThan(QLInteger a, QLInteger b) => a.Value < b.Value;
public void Visit(QLInteger value) { _result = value.IsUndefined() ? NewUndefined(QLInteger.Default) : new SpinBox(_label, value, _readOnly, _valueChangedHandler); }
public SpinBox(string label, QLInteger value, bool readOnly, Action <IValue> valueChangedHandler) : this(label, value.Value, int.MinValue, int.MaxValue, 1, 0, readOnly) { _valueChangedHandler = () => valueChangedHandler(new QLInteger(Convert.ToInt32(_numericUpDown.Value))); }