Kaynağa Gözat

commit tussendoor

Bart Reedijk 10 yıl önce
ebeveyn
işleme
f975599679

+ 16 - 0
Proftaak Remote Healthcare/Fietsclient/AppGlobal.cs

@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Fietsclient
+{
+    public class AppGlobal
+    {
+        public AppGlobal()
+        {
+
+        }
+    }
+}

+ 5 - 3
Proftaak Remote Healthcare/Fietsclient/Fietsclient.csproj

@@ -46,11 +46,13 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="Form1.cs">
+    <Compile Include="AppGlobal.cs" />
+    <Compile Include="KettlerBikeComm.cs" />
+    <Compile Include="MainForm.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Form1.Designer.cs">
-      <DependentUpon>Form1.cs</DependentUpon>
+    <Compile Include="MainForm.Designer.cs">
+      <DependentUpon>MainForm.cs</DependentUpon>
     </Compile>
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />

+ 23 - 0
Proftaak Remote Healthcare/Fietsclient/KettlerBikeComm.cs

@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Fietsclient
+{
+    class KettlerBikeComm
+    {
+
+        private static KettlerBikeComm _instance;
+        public static KettlerBikeComm Instance
+        {
+            get { return _instance ?? (_instance = new KettlerBikeComm()); }
+        }
+
+        private KettlerBikeComm()
+        {
+
+        }
+    }
+}

+ 1 - 1
Proftaak Remote Healthcare/Fietsclient/Form1.Designer.cs → Proftaak Remote Healthcare/Fietsclient/MainForm.Designer.cs

@@ -1,6 +1,6 @@
 namespace Fietsclient
 {
-    partial class Form1
+    partial class MainForm
     {
         /// <summary>
         /// Required designer variable.

+ 5 - 2
Proftaak Remote Healthcare/Fietsclient/Form1.cs → Proftaak Remote Healthcare/Fietsclient/MainForm.cs

@@ -8,13 +8,16 @@ using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
 
+
 namespace Fietsclient
 {
-    public partial class Form1 : Form
+    public partial class MainForm : Form
     {
-        public Form1()
+        private readonly AppGlobal _global;
+        public MainForm(AppGlobal global)
         {
             InitializeComponent();
+            _global = global;
         }
     }
 }

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

@@ -16,7 +16,7 @@ namespace Fietsclient
         {
             Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
-            Application.Run(new Form1());
+            Application.Run(new MainForm(new AppGlobal()));
         }
     }
 }