private void OnUiInfo(object sender, EventArgs e) { if (this.selectedSerial != null) { DeviceInfo_USB.ShowBox(this, this.selectedSerial); } }
public static void ShowBox(Window parent, SerialDeviceInfo info) { DeviceInfo_USB win = new DeviceInfo_USB(parent, info); win.ShowDialog(); }