/// <summary> /// Start - called when the module is first entered /// This function is called to show the overview or intro to the module. /// Typically the framework is active and user should choose a device in the device pool. /// </summary> /// <param name="ctx">The current working context for which this test will execute.</param> public void Start(IModuleContext ctx) { this.localDiscEmulationPath = string.Empty; this.AnyFailed = false; this.CurrentlySelectedFile = null; this.scannedFiles = new List<FileItem>(); this.moduleContext = ctx as IXboxModuleContext; this.moduleUI = new BAS008CTC1UI(this); }
/// <summary> /// Start begins the module wizard, and first shows any instructions. /// </summary> /// <param name="ctx">Current working module context</param> public void Start(IModuleContext ctx) { this.moduleContext = ctx as IXboxModuleContext; this.AutoMode = new DispatcherTimer(DispatcherPriority.ApplicationIdle); this.AutoMode.Tick += new EventHandler(this.DoAuto); this.TotalSignIns = 0; this.TotalSignOuts = 0; this.FirstPageVisibility = Visibility.Visible; this.SecondPageVisibility = Visibility.Collapsed; this.moduleUI = new BAS015UI(this); }
/// <summary> /// Start - called when the module is first entered /// This function is called to show the overview or intro to the module. /// Typically the framework is active and user should choose a device in the device pool. /// </summary> /// <param name="ctx">The current working context for which this test will execute.</param> public void Start(IModuleContext ctx) { this.moduleContext = ctx as IXboxModuleContext; this.LaunchTitleCommand = new Command((o) => this.xboxDevice.LaunchTitle()); this.CommandA = new Command((o) => this.SendControllerButton(XboxAutomationButtonFlags.A_Button)); this.CommandB = new Command((o) => this.SendControllerButton(XboxAutomationButtonFlags.B_Button)); this.CommandX = new Command((o) => this.SendControllerButton(XboxAutomationButtonFlags.X_Button)); this.CommandY = new Command((o) => this.SendControllerButton(XboxAutomationButtonFlags.Y_Button)); this.DetectControllerStateTimer = new DispatcherTimer(DispatcherPriority.ApplicationIdle); this.DetectControllerStateTimer.Tick += new EventHandler(this.PollController); this.DetectControllerStateTimer.Interval = new TimeSpan(0, 0, 0, 0, 10); // ten milliseconds this.DetectControllerStateTimer.Start(); this.moduleUI = new PER033CTC1UI(this); }
/// <summary> /// Start - called when the module is first entered /// /// This function is called to show the overview or intro to the module. /// Typically the framework is active and user should choose a device in the device pool. /// </summary> /// <param name="ctx">The current working context for which this test will execute.</param> public void Start(IModuleContext ctx) { this.moduleContext = ctx as IXboxModuleContext; this.moduleUI = new CMTV093CTC1UI(this); }
/// <summary> /// Derived class implementation of inherited IModule.Start() declaration. /// </summary> /// <param name="ctx">Current working Module Context in which this module is working</param> public void Start(IModuleContext ctx) { this.moduleContext = ctx as IXboxModuleContext; this.moduleUI = new BAS014UI(this); }