Exemplo n.º 1
0
        private void Set_DiscreteIO(string description, ObservableCollection <VM_BoolGet> observableCollection, int bitFieldKey)
        {
            var uiItem = new VM_BoolGet()
            {
                MsgReceiveIsDealtExternally = true,
                BitFieldKey = bitFieldKey,
                Description = description,
                _protocolOp = Consts.Keys.getProtocolOp(2228, 0)
            };             //VM_DataType_Factory.TaskFactory(key.Id);

            _dic_discrete_io[bitFieldKey] = uiItem;
            observableCollection.Add(uiItem);
        }
Exemplo n.º 2
0
 public Window1()
 {
     Temp        = new VM_BoolGet();
     DataContext = this;
     InitializeComponent();
 }