aboutsummaryrefslogtreecommitdiff
path: root/Projects/LEDNotifier/HotmailNotifierApp
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-11-09 12:45:10 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-11-09 12:45:10 +0000
commit010bd265a69a2750937279cce7bfc07198591949 (patch)
tree5d516b431e0a06e86fae2eb121afb07d4cdbc210 /Projects/LEDNotifier/HotmailNotifierApp
parentaed0a5bd9e0e816833c961eeaf18ba760932d309 (diff)
Update host C# applications for VS2010. Make LEDNotifier project host applications only display valid COM port names for the PC it is run on, rather than all possible port names. Add missing property files to the TempDataLogger project host application.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1972 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/LEDNotifier/HotmailNotifierApp')
-rw-r--r--Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.cs6
-rw-r--r--Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.csproj6
-rw-r--r--Projects/LEDNotifier/HotmailNotifierApp/Properties/Resources.Designer.cs4
-rw-r--r--Projects/LEDNotifier/HotmailNotifierApp/Properties/Settings.Designer.cs4
4 files changed, 13 insertions, 7 deletions
diff --git a/Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.cs b/Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.cs
index 43cbef88..02d83e85 100644
--- a/Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.cs
+++ b/Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.cs
@@ -23,8 +23,10 @@ namespace TestWinForms
Messenger = new MessengerAPI.Messenger();
AppRegKey = Registry.CurrentUser.CreateSubKey("Software\\MailNotifier");
- for (int i = 1; i < 99; i++)
- cmbComPort.Items.Add("COM" + i.ToString());
+ String[] PortNames = System.IO.Ports.SerialPort.GetPortNames();
+ Array.Sort<String>(PortNames, delegate(string strA, string strB) { return int.Parse(strA.Substring(3)).CompareTo(int.Parse(strB.Substring(3))); });
+ cmbComPort.Items.Clear();
+ cmbComPort.Items.AddRange(PortNames);
cmbComPort.SelectedIndex = System.Convert.ToInt32(AppRegKey.GetValue("Port", "1")) - 1;
serSerialPort.PortName = cmbComPort.Text;
diff --git a/Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.csproj b/Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.csproj
index 3156b5d1..98989a01 100644
--- a/Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.csproj
+++ b/Projects/LEDNotifier/HotmailNotifierApp/MailNotifier.csproj
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -12,6 +12,10 @@
<AssemblyName>MailNotifier</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <UpgradeBackupLocation />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
diff --git a/Projects/LEDNotifier/HotmailNotifierApp/Properties/Resources.Designer.cs b/Projects/LEDNotifier/HotmailNotifierApp/Properties/Resources.Designer.cs
index 67e2793d..663fe118 100644
--- a/Projects/LEDNotifier/HotmailNotifierApp/Properties/Resources.Designer.cs
+++ b/Projects/LEDNotifier/HotmailNotifierApp/Properties/Resources.Designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:2.0.50727.4927
+// Runtime Version:4.0.30319.239
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -19,7 +19,7 @@ namespace MailNotifier.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", "2.0.0.0")]
+ [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 {
diff --git a/Projects/LEDNotifier/HotmailNotifierApp/Properties/Settings.Designer.cs b/Projects/LEDNotifier/HotmailNotifierApp/Properties/Settings.Designer.cs
index 2906c3ff..7f27c5ee 100644
--- a/Projects/LEDNotifier/HotmailNotifierApp/Properties/Settings.Designer.cs
+++ b/Projects/LEDNotifier/HotmailNotifierApp/Properties/Settings.Designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:2.0.50727.4927
+// Runtime Version:4.0.30319.239
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -12,7 +12,7 @@ namespace MailNotifier.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));