Пример #1
0
        protected void SetCommandAsync(DecimalCommand command, decimal value, ICommandListener <decimal> listener)
        {
            if (command == null)
            {
                return;
            }

            Context.Communicator.SetValue <decimal>(command, value, listener, 0);
        }
Пример #2
0
        protected void QueryCommandAsync(DecimalCommand command, ICommandListener <decimal> listener)
        {
            if (command == null)
            {
                return;
            }

            Context.Communicator.QueryValue <decimal>(command, 0, listener);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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;
 }
Пример #6
0
 public DecimalConnector(DecimalCommand command, NumericUpDown control, Label label, CommandCategory category)
     : base(command, control, label, category)
 {
 }
Пример #7
0
 private RowColumnDecimalConnector ConnectMultiParameterControl(DecimalCommand command, NumericUpDown control, Label rowLabel, Label columnLabel, CommandCategory category)
 {
     return(new RowColumnDecimalConnector(command, control, rowLabel, columnLabel, category));
 }
Пример #8
0
 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));
 }