private void disconnectELLStageButton_Click(object sender, EventArgs e) { if (ELLDevicePort.Disconnect()) { textBox1.Text += Environment.NewLine + "device disconnected"; } }
private void DisconnectEx() { ELLDevicePort.DataSent = null; ELLDevicePort.DataReceived = null; ELLDevicePort.Disconnect(); IsConnected = ELLDevicePort.IsConnected; _deviceViewModels.Clear(); }