From a401fdc4c59131ea6b0e19284e7f7c06be8e0481 Mon Sep 17 00:00:00 2001 From: Aareschluchtje Date: Sat, 17 Oct 2015 22:57:31 +0200 Subject: [PATCH] Added a little beginning to the table. --- .../ConActiveSessions.cs | 4 +++- .../ErgometerDoctorApplication.csproj | 3 +++ ErgometerDoctorApplication/SessionTable.cs | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 ErgometerDoctorApplication/SessionTable.cs diff --git a/ErgometerDoctorApplication/ConActiveSessions.cs b/ErgometerDoctorApplication/ConActiveSessions.cs index d899ee4..9e29656 100644 --- a/ErgometerDoctorApplication/ConActiveSessions.cs +++ b/ErgometerDoctorApplication/ConActiveSessions.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Security.AccessControl; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; @@ -9,9 +10,10 @@ namespace ErgometerDoctorApplication { public class ConActiveSessions : Panel { - + public DataGridView data; public ConActiveSessions() : base() { + this.data = new DataGridView(); this.labelActiveSessions = new System.Windows.Forms.Label(); // // ConActiveSessions diff --git a/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj b/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj index db4e333..a5ca7c6 100644 --- a/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj +++ b/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj @@ -58,6 +58,9 @@ Component + + Component + Component diff --git a/ErgometerDoctorApplication/SessionTable.cs b/ErgometerDoctorApplication/SessionTable.cs new file mode 100644 index 0000000..5114b7f --- /dev/null +++ b/ErgometerDoctorApplication/SessionTable.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ErgometerDoctorApplication +{ + public class SessionTable : DataTable + { + public SessionTable() : base() + { + this.Columns.Clear(); + this.Columns.Add("User", typeof (string)); + this.Columns.Add("SessionId", typeof (string)); + } + } +}