private void showDeviceScreenViewPanel() { if (null == captureUI) { captureUI = new CaptureSettingUI(); } if (deviceList.SelectedItems.Count > 0) { String address = deviceList.SelectedItems[0].SubItems[1].Text; String[] sAll = address.Split(new char[] { 'x' }); if (sAll.Length > 1) { curDeviceWidth = int.Parse(sAll[0]); curDeviceHeight = int.Parse(sAll[1]); } } captureUI.setSize(curDeviceWidth, curDeviceHeight); captureUI.Show(); }