Switch to submodules, support multiple patterns, add options dialog, add license and initial readme

This commit is contained in:
2018-02-08 14:14:46 -05:00
parent 438433e022
commit 6fec068715
27 changed files with 1103 additions and 80 deletions

View File

@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -19,10 +19,10 @@ namespace WorkIndicator.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
public class Resources {
private static global::System.Resources.ResourceManager resourceMan;
@@ -36,7 +36,7 @@ namespace WorkIndicator.Properties {
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WorkIndicator.Properties.Resources", typeof(Resources).Assembly);
@@ -51,7 +51,7 @@ namespace WorkIndicator.Properties {
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
@@ -60,10 +60,47 @@ namespace WorkIndicator.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Version: {0}.
/// </summary>
public static string About_Version {
get {
return ResourceManager.GetString("About_Version", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Add.
/// </summary>
public static string AddWindowPattern {
get {
return ResourceManager.GetString("AddWindowPattern", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Add Window Pattern.
/// </summary>
public static string AddWindowPattern_ToolTip {
get {
return ResourceManager.GetString("AddWindowPattern_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
public static System.Drawing.Icon ApplicationIcon {
get {
object obj = ResourceManager.GetObject("ApplicationIcon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Work Indicator.
/// </summary>
internal static string ApplicationName {
public static string ApplicationName {
get {
return ResourceManager.GetString("ApplicationName", resourceCulture);
}
@@ -72,44 +109,188 @@ namespace WorkIndicator.Properties {
/// <summary>
/// Looks up a localized string similar to Auto.
/// </summary>
internal static string Auto {
public static string Auto {
get {
return ResourceManager.GetString("Auto", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cancel.
/// </summary>
public static string CancelButton {
get {
return ResourceManager.GetString("CancelButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Enabled.
/// </summary>
public static string ColumnHeader_Enabled {
get {
return ResourceManager.GetString("ColumnHeader_Enabled", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name.
/// </summary>
public static string ColumnHeader_Name {
get {
return ResourceManager.GetString("ColumnHeader_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Pattern.
/// </summary>
public static string ColumnHeader_Pattern {
get {
return ResourceManager.GetString("ColumnHeader_Pattern", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete.
/// </summary>
public static string DeleteWindowPattern {
get {
return ResourceManager.GetString("DeleteWindowPattern", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete Window Pattern.
/// </summary>
public static string DeleteWindowPattern_ToolTip {
get {
return ResourceManager.GetString("DeleteWindowPattern_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Edit.
/// </summary>
public static string EditWindowPattern {
get {
return ResourceManager.GetString("EditWindowPattern", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Edit Window Pattern.
/// </summary>
public static string EditWindowPattern_ToolTip {
get {
return ResourceManager.GetString("EditWindowPattern_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Free.
/// </summary>
internal static string Free {
public static string Free {
get {
return ResourceManager.GetString("Free", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// Looks up a localized string similar to OK.
/// </summary>
internal static System.Drawing.Icon MainIcon {
public static string OkayButton {
get {
object obj = ResourceManager.GetObject("MainIcon", resourceCulture);
return ((System.Drawing.Icon)(obj));
return ResourceManager.GetString("OkayButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to On Phone.
/// </summary>
internal static string OnPhone {
public static string OnPhone {
get {
return ResourceManager.GetString("OnPhone", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to About.
/// </summary>
public static string OptionCategory_About {
get {
return ResourceManager.GetString("OptionCategory_About", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to General.
/// </summary>
public static string OptionCategory_General {
get {
return ResourceManager.GetString("OptionCategory_General", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Window Patterns.
/// </summary>
public static string OptionCategory_WindowPatterns {
get {
return ResourceManager.GetString("OptionCategory_WindowPatterns", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cancel.
/// </summary>
public static string OptionsWindow_CancelButton {
get {
return ResourceManager.GetString("OptionsWindow_CancelButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
public static System.Drawing.Icon OptionsWindow_Icon {
get {
object obj = ResourceManager.GetObject("OptionsWindow_Icon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to OK.
/// </summary>
public static string OptionsWindow_OkayButton {
get {
return ResourceManager.GetString("OptionsWindow_OkayButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Options.
/// </summary>
public static string OptionsWindow_Title {
get {
return ResourceManager.GetString("OptionsWindow_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Start when Windows starts.
/// </summary>
public static string StartWithWindows {
get {
return ResourceManager.GetString("StartWithWindows", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Talking.
/// </summary>
internal static string Talking {
public static string Talking {
get {
return ResourceManager.GetString("Talking", resourceCulture);
}
@@ -118,16 +299,70 @@ namespace WorkIndicator.Properties {
/// <summary>
/// Looks up a localized string similar to Exit.
/// </summary>
internal static string TrayIconContextMenuExit {
public static string TrayIconContextMenuExit {
get {
return ResourceManager.GetString("TrayIconContextMenuExit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Options....
/// </summary>
public static string TrayIconContextMenuSettings {
get {
return ResourceManager.GetString("TrayIconContextMenuSettings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Enabled:.
/// </summary>
public static string WindowPatternEnabledLabel {
get {
return ResourceManager.GetString("WindowPatternEnabledLabel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Name:.
/// </summary>
public static string WindowPatternNameLabel {
get {
return ResourceManager.GetString("WindowPatternNameLabel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Pattern:.
/// </summary>
public static string WindowPatternPatternLabel {
get {
return ResourceManager.GetString("WindowPatternPatternLabel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Add Window Pattern.
/// </summary>
public static string WindowPatternWindowAdd {
get {
return ResourceManager.GetString("WindowPatternWindowAdd", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Edit Window Pattern.
/// </summary>
public static string WindowPatternWindowEdit {
get {
return ResourceManager.GetString("WindowPatternWindowEdit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Working.
/// </summary>
internal static string Working {
public static string Working {
get {
return ResourceManager.GetString("Working", resourceCulture);
}

View File

@@ -117,28 +117,106 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="About_Version" xml:space="preserve">
<value>Version: {0}</value>
</data>
<data name="AddWindowPattern" xml:space="preserve">
<value>Add</value>
</data>
<data name="AddWindowPattern_ToolTip" xml:space="preserve">
<value>Add Window Pattern</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="ApplicationIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ApplicationIcon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ApplicationName" xml:space="preserve">
<value>Work Indicator</value>
</data>
<data name="Auto" xml:space="preserve">
<value>Auto</value>
</data>
<data name="CancelButton" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="ColumnHeader_Enabled" xml:space="preserve">
<value>Enabled</value>
</data>
<data name="ColumnHeader_Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="ColumnHeader_Pattern" xml:space="preserve">
<value>Pattern</value>
</data>
<data name="DeleteWindowPattern" xml:space="preserve">
<value>Delete</value>
</data>
<data name="DeleteWindowPattern_ToolTip" xml:space="preserve">
<value>Delete Window Pattern</value>
</data>
<data name="EditWindowPattern" xml:space="preserve">
<value>Edit</value>
</data>
<data name="EditWindowPattern_ToolTip" xml:space="preserve">
<value>Edit Window Pattern</value>
</data>
<data name="Free" xml:space="preserve">
<value>Free</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="MainIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\MainIcon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="OkayButton" xml:space="preserve">
<value>OK</value>
</data>
<data name="OnPhone" xml:space="preserve">
<value>On Phone</value>
</data>
<data name="OptionCategory_About" xml:space="preserve">
<value>About</value>
</data>
<data name="OptionCategory_General" xml:space="preserve">
<value>General</value>
</data>
<data name="OptionCategory_WindowPatterns" xml:space="preserve">
<value>Window Patterns</value>
</data>
<data name="OptionsWindow_CancelButton" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="OptionsWindow_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ApplicationIcon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="OptionsWindow_OkayButton" xml:space="preserve">
<value>OK</value>
</data>
<data name="OptionsWindow_Title" xml:space="preserve">
<value>Options</value>
</data>
<data name="StartWithWindows" xml:space="preserve">
<value>_Start when Windows starts</value>
</data>
<data name="Talking" xml:space="preserve">
<value>Talking</value>
</data>
<data name="TrayIconContextMenuExit" xml:space="preserve">
<value>Exit</value>
</data>
<data name="TrayIconContextMenuSettings" xml:space="preserve">
<value>Options...</value>
</data>
<data name="WindowPatternEnabledLabel" xml:space="preserve">
<value>_Enabled:</value>
</data>
<data name="WindowPatternNameLabel" xml:space="preserve">
<value>_Name:</value>
</data>
<data name="WindowPatternPatternLabel" xml:space="preserve">
<value>_Pattern:</value>
</data>
<data name="WindowPatternWindowAdd" xml:space="preserve">
<value>Add Window Pattern</value>
</data>
<data name="WindowPatternWindowEdit" xml:space="preserve">
<value>Edit Window Pattern</value>
</data>
<data name="Working" xml:space="preserve">
<value>Working</value>
</data>

View File

@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.0
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -12,7 +12,7 @@ namespace WorkIndicator.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -35,18 +35,6 @@ namespace WorkIndicator.Properties {
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute(".* - CKACZOR - Remote Desktop Connection")]
public string WindowPattern {
get {
return ((string)(this["WindowPattern"]));
}
set {
this["WindowPattern"] = value;
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("00:00:10")]
@@ -64,5 +52,17 @@ namespace WorkIndicator.Properties {
return ((global::System.TimeSpan)(this["UpdateInterval"]));
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string WindowPatterns {
get {
return ((string)(this["WindowPatterns"]));
}
set {
this["WindowPatterns"] = value;
}
}
}
}

View File

@@ -5,14 +5,14 @@
<Setting Name="StartWithWindows" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="WindowPattern" Type="System.String" Scope="User">
<Value Profile="(Default)">.* - CKACZOR - Remote Desktop Connection</Value>
</Setting>
<Setting Name="RetryInterval" Type="System.TimeSpan" Scope="Application">
<Value Profile="(Default)">00:00:10</Value>
</Setting>
<Setting Name="UpdateInterval" Type="System.TimeSpan" Scope="Application">
<Value Profile="(Default)">00:00:00.5000000</Value>
</Setting>
<Setting Name="WindowPatterns" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>