protected void SetCommandAsync(DecimalCommand command, decimal value, ICommandListener <decimal> listener) { if (command == null) { return; } Context.Communicator.SetValue <decimal>(command, value, listener, 0); }
protected void QueryCommandAsync(DecimalCommand command, ICommandListener <decimal> listener) { if (command == null) { return; } Context.Communicator.QueryValue <decimal>(command, 0, listener); }
protected ErrorCode SetCommand(DecimalCommand command, decimal value) { if (command == null) { return(ErrorCode.InvalidSettingId); } WaitDecimalCommandListener listener = new WaitDecimalCommandListener(); Context.Communicator.SetValue <decimal>(command, value, listener, 0); ErrorCode?error; listener.Get(out error); return(error ?? ErrorCode.NoError); }
protected decimal QueryCommand(DecimalCommand command) { if (command == null) { return(0); } WaitDecimalCommandListener listener = new WaitDecimalCommandListener(); Context.Communicator.QueryValue <decimal>(command, 0, listener); ErrorCode?error; decimal? value = listener.Get(out error); return(value ?? 0); }
public RowColumnDecimalConnector(DecimalCommand command, NumericUpDown control, Label rowLabel, Label columnLabel, CommandCategory category) : base(command, control, rowLabel, category) { this.columnLabel = columnLabel; }
public DecimalConnector(DecimalCommand command, NumericUpDown control, Label label, CommandCategory category) : base(command, control, label, category) { }
private RowColumnDecimalConnector ConnectMultiParameterControl(DecimalCommand command, NumericUpDown control, Label rowLabel, Label columnLabel, CommandCategory category) { return(new RowColumnDecimalConnector(command, control, rowLabel, columnLabel, category)); }
private DecimalConnector ConnectDecimalControl(DecimalCommand command, NumericUpDown control, Label label, CommandCategory category) { return(new DecimalConnector(command, control, label, category)); }
public InputPriorityDecimalConnector(DecimalCommand command, NumericUpDown control, Label label, CommandCategory category, ListConnector inputSelectConnector) : base(command, control, label, category) { this.inputSelectConnector = inputSelectConnector; inputSelectConnector.AddListControlChangeListener(new EventHandler(InputSelectControlChanged)); }