Adding bitmap field object.
authorsl
Mon, 13 Oct 2014 19:24:30 +0200
changeset 66a02bd242f219
parent 65 464486b81635
child 67 6e50baf5a811
Adding bitmap field object.
Interface/Interface.cs
     1.1 --- a/Interface/Interface.cs	Fri Oct 03 18:43:55 2014 +0200
     1.2 +++ b/Interface/Interface.cs	Mon Oct 13 19:24:30 2014 +0200
     1.3 @@ -64,6 +64,16 @@
     1.4      [DataContract]
     1.5      public class DataField
     1.6      {
     1.7 +        public DataField()
     1.8 +        {
     1.9 +            Index = 0;
    1.10 +            ColumnSpan = 1;
    1.11 +            RowSpan = 1;
    1.12 +        }
    1.13 +
    1.14 +        [DataMember]
    1.15 +        public int Index { get; set; }
    1.16 +
    1.17          [DataMember]
    1.18          public int Column { get; set; }
    1.19  
    1.20 @@ -100,9 +110,6 @@
    1.21          }
    1.22  
    1.23          [DataMember]
    1.24 -        public int Index { get; set; }
    1.25 -
    1.26 -        [DataMember]
    1.27          public string Text { get; set; }
    1.28  
    1.29          [DataMember]
    1.30 @@ -110,6 +117,26 @@
    1.31      }
    1.32  
    1.33      /// <summary>
    1.34 +    /// TextField can be send to our server to be displayed on the screen.
    1.35 +    /// </summary>
    1.36 +    [DataContract]
    1.37 +    public class BitmapField : DataField
    1.38 +    {
    1.39 +        public BitmapField()
    1.40 +        {
    1.41 +        }
    1.42 +
    1.43 +        public BitmapField(int aIndex, Bitmap aBitmap)
    1.44 +        {
    1.45 +            Index = aIndex;
    1.46 +            Bitmap = aBitmap;
    1.47 +        }
    1.48 +
    1.49 +        [DataMember]
    1.50 +        public Bitmap Bitmap { get; set; }
    1.51 +    }
    1.52 +
    1.53 +    /// <summary>
    1.54      /// Define our SharpDisplay service.
    1.55      /// Clients and servers must implement it to communicate with one another.
    1.56      /// Through this service clients can send requests to a server.