Пример #1
0
 /// <summary>
 /// load devices configure
 /// </summary>
 private void LoadDevicesConfigure()
 {
     mDevices = new DevicesCollection();
     lstDevices.Items.Clear();
     mDevices.LoadAllDevices();
     foreach (DeviceConfig dev in mDevices.Devices)
     {
         lstDevices.Items.Add(dev.Name);
     }
     lbDevices.Text = string.Format("Devices ({0})", lstDevices.Items.Count);
     if (mDevices.Devices.Length > 0)
     {
         FillCommandsTree(mDevices.Devices[0]);
         FillProperties(mDevices.Devices[0]);
     }
 }
Пример #2
0
 /// <summary>
 /// load devices configure
 /// </summary>
 private void LoadDevicesConfigure()
 {
     mDevices = new DevicesCollection();
     lstDevices.Items.Clear();
     mDevices.LoadAllDevices();
     foreach (DeviceConfig dev in mDevices.Devices)
     {
         lstDevices.Items.Add(dev.Name);
     }
     lbDevices.Text = string.Format("Devices ({0})", lstDevices.Items.Count);
     if (mDevices.Devices.Length > 0)
     {
         FillCommandsTree(mDevices.Devices[0]);
         FillProperties(mDevices.Devices[0]);
     }
 }