예제 #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();
 }
예제 #2
0
파일: MainForm.cs 프로젝트: shaoju/ThirdEye
 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();
 }