private void buttonDisconnect_Click(object sender, EventArgs e) { HandleConnectionResult(null); _connection.Dispose(); _connection = new UsbDaqConnection(); HandleConnectionResult(_connection.IsConnected); }
public MainForm() { InitializeComponent(); _sensorViewPanelControler = new SensorViewPanelController(panelSensors); _connection = new UsbDaqConnection(); timerProperties_Tick(this, null); }
public PatcherForm2(UsbDaqConnection device) : base(device) { InitializeComponent(); AnemSelectionRadioItems.Properties.Items.Clear(); AnemSelectionRadioItems.Properties.Items.AddRange(new [] { new RadioGroupItem(1, "A"), new RadioGroupItem(2, "B"), new RadioGroupItem(3, "C"), new RadioGroupItem(4, "D"), new RadioGroupItem(0, "Unassigned"), new RadioGroupItem(0xf, "Corrupted"), }); }
public PatcherForm(UsbDaqConnection device) { _device = device; InitializeComponent(); }