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);
            }
                                       );
        }
Example #2
0
 public TradeWindow(CaptureScreen captureScreen, ILog log)
 {
     this.captureScreen = captureScreen;
     this.log           = log;
 }
Example #3
0
 public BuildingSelector(ILog log, Touch touch)
 {
     this.log   = log;
     this.touch = touch;
     screen     = new CaptureScreen(log);
 }
Example #4
0
 public CommerceResourceReader(ILog log, Touch touch)
 {
     this.log      = log;
     this.touch    = touch;
     captureScreen = new CaptureScreen(log);
 }