This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void OnRotationChanged(RadialController sender, RadialControllerRotationChangedEventArgs args) | |
{ | |
if (args.RotationDeltaInDegrees > 0) | |
{ | |
_dte.Application.Debugger.StepOver(); | |
} | |
else | |
{ | |
_dte.Application.Debugger.StepInto(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void HookUpEvents() | |
{ | |
_radialController.RotationChanged += OnRotationChanged; | |
_radialController.ButtonClicked += OnButtonClicked; | |
_dte.Events.SolutionEvents.AfterClosing += () => | |
{ | |
_radialController.Menu.Items.Clear(); | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void CreateController() | |
{ | |
IRadialControllerInterop interop = (IRadialControllerInterop)System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal.GetActivationFactory(typeof(RadialController)); | |
Guid guid = typeof(RadialController).GetInterface("IRadialController").GUID; | |
_radialController = interop.CreateForWindow(new IntPtr(_dte.ActiveWindow.HWnd), ref guid); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void Initialize() | |
{ | |
base.Initialize(); | |
_dte = GetService(typeof(DTE)) as DTE; | |
if (_dte == null) | |
{ | |
throw new NullReferenceException("DTE is null"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Windows.UI.Input; | |
namespace DialDebug | |
{ | |
[System.Runtime.InteropServices.Guid("1B0535C9-57AD-45C1-9D79-AD5C34360513")] | |
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIInspectable)] | |
public interface IRadialControllerInterop | |
{ | |
RadialController CreateForWindow( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Runtime.InteropServices.Guid("1B0535C9-57AD-45C1-9D79-AD5C34360513")] | |
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIInspectable)] | |
public interface IRadialControllerInterop | |
{ RadialController CreateForWindow( IntPtr hwnd, [System.Runtime.InteropServices.In]ref Guid riid); | |
} | |
[System.Runtime.InteropServices.Guid("787cdaac-3186-476d-87e4-b9374a7b9970")] | |
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIInspectable)] | |
public interface IRadialControllerConfigurationInterop | |
{ RadialControllerConfiguration GetForWindow( IntPtr hwnd, [System.Runtime.InteropServices.In]ref Guid riid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PackageRegistration(UseManagedResourcesOnly = true)] | |
[InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)] // Info on this package for Help/About | |
[Guid(DialDebugPackage.PackageGuidString)] | |
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "pkgdef, VS and vsixmanifest are valid VS terms")] | |
[ProvideAutoLoad(UIContextGuids80.SolutionExists)] | |
[ProvideMenuResource("Menus.ctmenu", 1)] | |
public sealed class DialDebugPackage : Package | |
{ | |
… |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ProvideAutoLoad(UIContextGuids80.SolutionExists)] |
NewerOlder