2015-06-01 01:02:52 +00:00
|
|
|
|
using Microsoft.VisualStudio.Shell;
|
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
namespace VitaliiGanzha.VsDingExtension
|
|
|
|
|
{
|
|
|
|
|
[ClassInterface(ClassInterfaceType.AutoDual)]
|
|
|
|
|
[CLSCompliant(false), ComVisible(true)]
|
|
|
|
|
public class OptionsDialog : DialogPage
|
|
|
|
|
{
|
|
|
|
|
[Category("Beeps")]
|
|
|
|
|
[DisplayName("Breakpoint")]
|
|
|
|
|
[Description("Beep when a breakpoint is hit")]
|
2015-06-12 21:09:04 +00:00
|
|
|
|
public bool IsBeepOnBreakpointHit { get; set; }
|
2015-06-01 01:02:52 +00:00
|
|
|
|
|
|
|
|
|
[Category("Beeps")]
|
|
|
|
|
[DisplayName("Build")]
|
|
|
|
|
[Description("Beep when a build is completed")]
|
2015-06-12 21:09:04 +00:00
|
|
|
|
public bool IsBeepOnBuildComplete { get; set; }
|
2015-06-01 01:02:52 +00:00
|
|
|
|
|
|
|
|
|
[Category("Beeps")]
|
|
|
|
|
[DisplayName("Tests")]
|
|
|
|
|
[Description("Beep when a test run is completed")]
|
2015-12-16 15:04:33 +00:00
|
|
|
|
public bool IsBeepOnTestComplete { get; set; }
|
|
|
|
|
|
|
|
|
|
[Category("Beeps")]
|
|
|
|
|
[DisplayName("Failed Tests")]
|
|
|
|
|
[Description("Beep only when a test failed")]
|
|
|
|
|
public bool IsBeepOnTestFailed { get; set; }
|
2015-06-01 01:02:52 +00:00
|
|
|
|
|
|
|
|
|
[DisplayName("Only when in background")]
|
|
|
|
|
[Description("Beep only when Visual Studio does not have focus")]
|
2015-06-12 21:09:04 +00:00
|
|
|
|
public bool IsBeepOnlyWhenVisualStudioIsInBackground { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Show tray notifications")]
|
|
|
|
|
[Description("Show tray notifications for enabled events")]
|
|
|
|
|
public bool ShowTrayNotifications { get; set; }
|
2015-06-01 01:02:52 +00:00
|
|
|
|
|
2015-12-16 16:18:16 +00:00
|
|
|
|
[DisplayName("Tray notifications message")]
|
|
|
|
|
[Description("Show message how to disable tray notifications")]
|
|
|
|
|
public bool ShowTrayDisableMessage { get; set; }
|
|
|
|
|
|
2015-06-01 01:02:52 +00:00
|
|
|
|
public OptionsDialog()
|
|
|
|
|
{
|
2015-06-12 21:09:04 +00:00
|
|
|
|
IsBeepOnBreakpointHit = true;
|
|
|
|
|
IsBeepOnBuildComplete = true;
|
2015-12-16 15:04:33 +00:00
|
|
|
|
IsBeepOnTestComplete = true;
|
|
|
|
|
IsBeepOnTestFailed = false;
|
2015-06-12 21:09:04 +00:00
|
|
|
|
ShowTrayNotifications = true;
|
|
|
|
|
IsBeepOnlyWhenVisualStudioIsInBackground = false;
|
2015-12-16 16:18:16 +00:00
|
|
|
|
ShowTrayDisableMessage = true;
|
2015-06-01 01:02:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|