private void RefreshMemuDevices() { this.listBoxDevices.Items.Clear(); this.listBoxProcess.Items.Clear(); devices.ForEach(d => this.listBoxDevices.Items.Add(d.DeviceProperty)); processes.ToList().ForEach(p => { var rect = new CaptureScreen.Rect(); var error = CaptureScreen.GetWindowRect(p.MainWindowHandle, ref rect); // adb shell am display-size 1920x1080 long height = rect.bottom - rect.top; long width = rect.right - rect.left; this.listBoxProcess.Items.Add(p.MainWindowTitle + " " + width + "x" + height); } ); }
public TradeWindow(CaptureScreen captureScreen, ILog log) { this.captureScreen = captureScreen; this.log = log; }
public BuildingSelector(ILog log, Touch touch) { this.log = log; this.touch = touch; screen = new CaptureScreen(log); }
public CommerceResourceReader(ILog log, Touch touch) { this.log = log; this.touch = touch; captureScreen = new CaptureScreen(log); }