private void btnPortSelect_Click(object sender, RoutedEventArgs e) { PortsDBSelect win = new PortsDBSelect(); win.ShowDialog(); if (win.Result != null) { Com0comPortPair p; if ((p = listPorts.SelectedValue as Com0comPortPair) != null) { p.CommsMode = win.Result.Mode; p.LocalPort = win.Result.LocalPort; p.RemoteIP = win.Result.RemoteIP; //p.RemotePort = win.Result.RemotePort; } } }
private void btnPortSelect_Click(object sender, RoutedEventArgs e) { PortsDBSelect win = new PortsDBSelect(); win.ShowDialog(); if (win.Result != null) { Com0comPortPair p; if ((p = listPorts.SelectedValue as Com0comPortPair) != null) { p.CommsMode = win.Result.Mode; p.LocalPort = win.Result.LocalPort; p.RemoteIP = win.Result.RemoteIP; //p.RemotePort = win.Result.RemotePort; } } }