public EmulatorController(string emulatorName) { this.emulatorVm = EmulatorFactory.Instance.GetVm(emulatorName); if (this.emulatorVm == null) { throw new NullReferenceException( string.Format("Could not get running XDE virtual machine {0}", emulatorName)); } this.client = AutomationClient.CreateAutomationClient(this.emulatorVm.Name); this.cursor = new Point(0, 0); this.PhoneScreenSize = this.emulatorVm.GetCurrentResolution(); }
public EmulatorController(string emulatorName) { this.emulatorVm = EmulatorFactory.Instance.GetVm(emulatorName); if (this.emulatorVm == null) { throw new NullReferenceException( string.Format("Could not get running XDE virtual machine {0}", emulatorName)); } this.client = AutomationClient.CreateAutomationClient(this.emulatorVm.Name); this.cursor = new Point(0, 0); this.PhoneScreenSize = this.emulatorVm.GetCurrentResolution(); }