From 9cd764b0a72c586ab677e180f803f0f0e41049be Mon Sep 17 00:00:00 2001 From: jvilalta Date: Fri, 4 Mar 2011 15:39:22 -0600 Subject: [PATCH] only show the last server --- .../Properties/Resources.Designer.cs | 42 ++++++++----------- .../RegistryStore.cs | 4 +- 2 files changed, 19 insertions(+), 27 deletions(-) diff --git a/ClickForensics.Quartz.Manager.Wpf/Properties/Resources.Designer.cs b/ClickForensics.Quartz.Manager.Wpf/Properties/Resources.Designer.cs index ccc2fa4..fddbcce 100644 --- a/ClickForensics.Quartz.Manager.Wpf/Properties/Resources.Designer.cs +++ b/ClickForensics.Quartz.Manager.Wpf/Properties/Resources.Designer.cs @@ -8,10 +8,10 @@ // //------------------------------------------------------------------------------ -namespace ClickForensics.Quartz.Manager.Wpf.Properties -{ - - +namespace ClickForensics.Quartz.Manager.Wpf.Properties { + using System; + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// @@ -22,48 +22,40 @@ namespace ClickForensics.Quartz.Manager.Wpf.Properties [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - + internal class Resources { + private static global::System.Resources.ResourceManager resourceMan; - + private static global::System.Globalization.CultureInfo resourceCulture; - + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { + internal Resources() { } - + /// /// Returns the cached ResourceManager instance used by this class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ClickForensics.Quartz.Manager.Wpf.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } - + /// /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { + internal static global::System.Globalization.CultureInfo Culture { + get { return resourceCulture; } - set - { + set { resourceCulture = value; } } diff --git a/ClickForensics.Quartz.Manager/RegistryStore.cs b/ClickForensics.Quartz.Manager/RegistryStore.cs index a2087a8..2fc7b05 100644 --- a/ClickForensics.Quartz.Manager/RegistryStore.cs +++ b/ClickForensics.Quartz.Manager/RegistryStore.cs @@ -26,8 +26,8 @@ namespace ClickForensics.Quartz.Manager { return lastConnections; } - - for (int i = 0; i < 5; i++) + //TODO: show more than one server in dropdown + for (int i = 0; i < 1; i++) { ConnectionInfo info = ConnectionInfo.Parse((key.GetValue(string.Format("connection{0}", i), null) as string)); if (info != null)