Moving ClientData class to its own file.
authorStephaneLenclud
Thu, 11 Jun 2015 17:21:15 +0200
changeset 1404dff57d255c9
parent 139 9e88c1a8cc1d
child 141 6f1da2b5c2ec
child 144 8e4c7cca77b8
Moving ClientData class to its own file.
Server/ClientData.cs
Server/MainForm.cs
Server/SharpDisplayManager.csproj
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Server/ClientData.cs	Thu Jun 11 17:21:15 2015 +0200
     1.3 @@ -0,0 +1,32 @@
     1.4 +using System;
     1.5 +using System.Collections.Generic;
     1.6 +using System.Linq;
     1.7 +using System.Text;
     1.8 +using System.Threading.Tasks;
     1.9 +//
    1.10 +using SharpDisplay;
    1.11 +
    1.12 +namespace SharpDisplayManager
    1.13 +{
    1.14 +    /// <summary>
    1.15 +    /// A UI thread copy of a client relevant data.
    1.16 +    /// Keeping this copy in the UI thread helps us deal with threading issues.
    1.17 +    /// </summary>
    1.18 +    public class ClientData
    1.19 +    {
    1.20 +        public ClientData(string aSessionId, ICallback aCallback)
    1.21 +        {
    1.22 +            SessionId = aSessionId;
    1.23 +            Name = "";
    1.24 +            Fields = new List<DataField>();
    1.25 +            Layout = new TableLayout(1, 2); //Default to one column and two rows
    1.26 +            Callback = aCallback;
    1.27 +        }
    1.28 +
    1.29 +        public string SessionId { get; set; }
    1.30 +        public string Name { get; set; }
    1.31 +        public List<DataField> Fields { get; set; }
    1.32 +        public TableLayout Layout { get; set; }
    1.33 +        public ICallback Callback { get; set; }
    1.34 +    }
    1.35 +}
     2.1 --- a/Server/MainForm.cs	Tue May 26 12:25:34 2015 +0200
     2.2 +++ b/Server/MainForm.cs	Thu Jun 11 17:21:15 2015 +0200
     2.3 @@ -2012,7 +2012,6 @@
     2.4  					SysTrayHideShow();
     2.5  				}
     2.6  			}
     2.7 -
     2.8  		}
     2.9  
    2.10  		/// <summary>
    2.11 @@ -2047,26 +2046,4 @@
    2.12  			}
    2.13  		}
    2.14      }
    2.15 -
    2.16 -    /// <summary>
    2.17 -    /// A UI thread copy of a client relevant data.
    2.18 -    /// Keeping this copy in the UI thread helps us deal with threading issues.
    2.19 -    /// </summary>
    2.20 -    public class ClientData
    2.21 -    {
    2.22 -        public ClientData(string aSessionId, ICallback aCallback)
    2.23 -        {
    2.24 -            SessionId = aSessionId;
    2.25 -            Name = "";
    2.26 -            Fields = new List<DataField>();
    2.27 -            Layout = new TableLayout(1, 2); //Default to one column and two rows
    2.28 -            Callback = aCallback;
    2.29 -        }
    2.30 -
    2.31 -        public string SessionId { get; set; }
    2.32 -        public string Name { get; set; }
    2.33 -        public List<DataField> Fields { get; set; }
    2.34 -        public TableLayout Layout { get; set; }
    2.35 -        public ICallback Callback { get; set; }
    2.36 -    }
    2.37  }
     3.1 --- a/Server/SharpDisplayManager.csproj	Tue May 26 12:25:34 2015 +0200
     3.2 +++ b/Server/SharpDisplayManager.csproj	Thu Jun 11 17:21:15 2015 +0200
     3.3 @@ -139,6 +139,7 @@
     3.4    </ItemGroup>
     3.5    <ItemGroup>
     3.6      <Compile Include="CbtHook.cs" />
     3.7 +    <Compile Include="ClientData.cs" />
     3.8      <Compile Include="MainForm.Hid.cs">
     3.9        <DependentUpon>MainForm.cs</DependentUpon>
    3.10      </Compile>