Example #1
0
        private void rdmDevices_AfterSelect(object sender, TreeViewEventArgs e)
        {
            RdmDeviceModel model = e.Node.Tag as RdmDeviceModel;

            if (model != null)
            {
                SelectedDevice = model.Broker;
            }
        }
Example #2
0
        private void AddDevice(UId id, RdmEndPoint address)
        {
            if (!devices.ContainsKey(id))
            {
                RdmDeviceModel device = new RdmDeviceModel(new TreeNode(id.ToString()), Transport.Socket, id, address);
                devices[id] = device;
                rdmDevices.Nodes.Add(device.Node);

                if (AutoInterogate)
                {
                    device.Interogate();
                }
            }
        }