コード例 #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="ExecuteSelectedTestsCommand"/> class.
		/// </summary>
		/// <param name="package">The Visual Studio Extension Package.</param>
		public ExecuteSelectedTestsCommand(OpenCoverUIPackage package, IVsUIShell uiShell)
			: base(package, new CommandID(GuidList.GuidOpenCoverUICmdSet, (int)PkgCmdIDList.CmdidCoverWithOpenCover))
		{
			this._package = package;
			this._uiShell = uiShell;
			this._testTreeControl = IDEHelper.GetTestTreeControl(_uiShell);
			this._testTreeControl.LayoutUpdated += EnableDisableCommand;
			base.Enabled = false;
		}
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExecuteSelectedTestsCommand"/> class.
 /// </summary>
 /// <param name="package">The Visual Studio Extension Package.</param>
 public ExecuteSelectedTestsCommand(OpenCoverUIPackage package, IVsUIShell uiShell)
     : base(package, new CommandID(GuidList.GuidOpenCoverUICmdSet, (int)PkgCmdIDList.CmdidCoverWithOpenCover))
 {
     this._package         = package;
     this._uiShell         = uiShell;
     this._testTreeControl = IDEHelper.GetTestTreeControl(_uiShell);
     this._testTreeControl.LayoutUpdated += EnableDisableCommand;
     base.Enabled = false;
 }