public void Init(BusManager bmgr, BusDeviceBase device)
 {
     m_bmgr = bmgr;
     m_device = device;
     txtDevice.Text = device.Name;
     txtDescription.Text = device.Description.Replace("\n", Environment.NewLine);
 }
 private void insertListViewItem(int index, UserControl control, BusDeviceBase device)
 {
     control.Location = new Point(0, 0);
     control.Size = pnlSettings.ClientSize;
     control.Visible = false;
     pnlSettings.Controls.Add(control);
     var csc = (ConfigScreenControl)control;
     m_ctlList.Insert(index, csc);
     m_devList.Insert(index, device);
     var lvi = new ListViewItem();
     lvi.Tag = csc;
     lvi.Text = device.Category.ToString();
     lvi.SubItems.Add(device.Name);
     lvi.ImageIndex = FindImageIndex(device.Category);
     lstNavigation.Items.Insert(index, lvi);
 }