Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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();
 }