private void listViewDevices_DoubleClick(object sender, EventArgs e) { var c = listViewDevices.SelectedItems; if (c.Count > 0) { var f = new FormConnector((IPAddress)c[0].Tag); if (f.ShowDialog() == DialogResult.OK) { new FormEditor(f.Configuration, f.Connection).ShowDialog(); } } }
private void listViewDevices_DoubleClick(object sender, EventArgs e) { var c = listViewDevices.SelectedItems; if (c.Count > 0) { var f = new FormConnector((IPAddress) c[0].Tag); if (f.ShowDialog() == DialogResult.OK) new FormEditor(f.Configuration, f.Connection).ShowDialog(); } }