Browse Source

Merge branch Comport into features/Bart

Bart Reedijk 10 years ago
parent
commit
7ac5abaf4d

+ 7 - 1
Proftaak Remote Healthcare/FietsSimulator/Program.cs

@@ -12,7 +12,12 @@ namespace FietsSimulator
     {
     {
         static void Main(string[] args)
         static void Main(string[] args)
         {
         {
-            new FietsSimulator("COM6");
+            string[] ports = SerialPort.GetPortNames();
+            Console.WriteLine("Availabe Comports: \n" + String.Join(" \n", ports));
+            Console.WriteLine("Enter Comport:");
+            string port = Console.ReadLine();
+            new FietsSimulator(port);
+            Console.WriteLine("Started Simulator");
             while (true)
             while (true)
             {
             {
                 Thread.Sleep(10);
                 Thread.Sleep(10);
@@ -20,4 +25,5 @@ namespace FietsSimulator
         }
         }
     }
     }
 
 
+    
 }
 }

+ 4 - 1
Proftaak Remote Healthcare/Fietsclient/Fietsclient.csproj

@@ -5,7 +5,7 @@
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <ProjectGuid>{49668592-ED5D-4907-9EA7-2DF70AB96271}</ProjectGuid>
     <ProjectGuid>{49668592-ED5D-4907-9EA7-2DF70AB96271}</ProjectGuid>
-    <OutputType>WinExe</OutputType>
+    <OutputType>Exe</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>Fietsclient</RootNamespace>
     <RootNamespace>Fietsclient</RootNamespace>
     <AssemblyName>Fietsclient</AssemblyName>
     <AssemblyName>Fietsclient</AssemblyName>
@@ -32,6 +32,9 @@
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   </PropertyGroup>
+  <PropertyGroup>
+    <StartupObject />
+  </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <Reference Include="System" />
     <Reference Include="System" />
     <Reference Include="System.Core" />
     <Reference Include="System.Core" />

+ 1 - 1
Proftaak Remote Healthcare/Fietsclient/KettlerBikeComm.cs

@@ -56,7 +56,7 @@ namespace Fietsclient
             if (handler != null) handler(data);
             if (handler != null) handler(data);
         }
         }
 
 
-        private static void OnIncomingDebugLineEvent(string debugData)
+        public static void OnIncomingDebugLineEvent(string debugData)
         {
         {
             DebugDelegate handler = IncomingDebugLineEvent;
             DebugDelegate handler = IncomingDebugLineEvent;
             if (handler != null) handler(debugData);
             if (handler != null) handler(debugData);