Example #1
0
        private void InsertDevice(int index, DeviceInfo device)
        {
            var insertedIndex = deviceListStore.InsertRowBefore(index);

            deviceListStoreMirror.Insert(index, device);
            deviceListStore.SetValue(insertedIndex, idField, device.UniqueKey);
            deviceListStore.SetValue(insertedIndex, enabledField, device.Enabled);
            deviceListStore.SetValue(insertedIndex, nameField, device.FriendlyName);
        }