# HG changeset patch
# User sl
# Date 1413221070 -7200
# Node ID a02bd242f219a0832355343fb2142aef326f8cc3
# Parent 464486b8163560e51cdd0a2da3d498c2c658e5a4
Adding bitmap field object.
diff -r 464486b81635 -r a02bd242f219 Interface/Interface.cs
--- a/Interface/Interface.cs Fri Oct 03 18:43:55 2014 +0200
+++ b/Interface/Interface.cs Mon Oct 13 19:24:30 2014 +0200
@@ -64,6 +64,16 @@
[DataContract]
public class DataField
{
+ public DataField()
+ {
+ Index = 0;
+ ColumnSpan = 1;
+ RowSpan = 1;
+ }
+
+ [DataMember]
+ public int Index { get; set; }
+
[DataMember]
public int Column { get; set; }
@@ -100,9 +110,6 @@
}
[DataMember]
- public int Index { get; set; }
-
- [DataMember]
public string Text { get; set; }
[DataMember]
@@ -110,6 +117,26 @@
}
///
+ /// TextField can be send to our server to be displayed on the screen.
+ ///
+ [DataContract]
+ public class BitmapField : DataField
+ {
+ public BitmapField()
+ {
+ }
+
+ public BitmapField(int aIndex, Bitmap aBitmap)
+ {
+ Index = aIndex;
+ Bitmap = aBitmap;
+ }
+
+ [DataMember]
+ public Bitmap Bitmap { get; set; }
+ }
+
+ ///
/// Define our SharpDisplay service.
/// Clients and servers must implement it to communicate with one another.
/// Through this service clients can send requests to a server.