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;
Exemplo n.º 8
0
 public void Visit(QLInteger value)
 {
     _result = value.IsUndefined() ? NewUndefined(QLInteger.Default) : new SpinBox(_label, value, _readOnly, _valueChangedHandler);
 }
Exemplo n.º 9
0
 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)));
 }