1.1 --- a/Interface/Interface.cs Mon Sep 22 13:21:00 2014 +0200
1.2 +++ b/Interface/Interface.cs Mon Sep 22 16:04:26 2014 +0200
1.3 @@ -19,7 +19,57 @@
1.4 /// TextField can be send to our server to be displayed on the screen.
1.5 /// </summary>
1.6 [DataContract]
1.7 - public class TextField
1.8 + public class TableLayout
1.9 + {
1.10 + public TableLayout()
1.11 + {
1.12 + ColumnCount = 0;
1.13 + RowCount = 0;
1.14 + //Alignment = ContentAlignment.MiddleLeft;
1.15 + }
1.16 +
1.17 + public TableLayout(int aColumnCount, int aRowCount)
1.18 + {
1.19 + ColumnCount = aColumnCount;
1.20 + RowCount = aRowCount;
1.21 + }
1.22 +
1.23 + [DataMember]
1.24 + public int ColumnCount { get; set; }
1.25 +
1.26 + [DataMember]
1.27 + public int RowCount { get; set; }
1.28 +
1.29 + [DataMember]
1.30 + public List<DataField> Cells { get; set; }
1.31 + }
1.32 +
1.33 + /// <summary>
1.34 + ///
1.35 + /// </summary>
1.36 + [DataContract]
1.37 + public class DataField
1.38 + {
1.39 + [DataMember]
1.40 + public int Column { get; set; }
1.41 +
1.42 + [DataMember]
1.43 + public int Row { get; set; }
1.44 +
1.45 + [DataMember]
1.46 + public int ColumnSpan { get; set; }
1.47 +
1.48 + [DataMember]
1.49 + public int RowSpan { get; set; }
1.50 +
1.51 + }
1.52 +
1.53 +
1.54 + /// <summary>
1.55 + /// TextField can be send to our server to be displayed on the screen.
1.56 + /// </summary>
1.57 + [DataContract]
1.58 + public class TextField : DataField
1.59 {
1.60 public TextField()
1.61 {
1.62 @@ -64,6 +114,13 @@
1.63 [OperationContract(IsOneWay = true)]
1.64 void SetName(string aClientName);
1.65
1.66 +
1.67 + /// <summary>
1.68 + /// </summary>
1.69 + /// <param name="aLayout"></param>
1.70 + [OperationContract(IsOneWay = true)]
1.71 + void SetLayout(TableLayout aLayout);
1.72 +
1.73 /// <summary>
1.74 /// Put the given text in the given field on your display.
1.75 /// Fields are often just lines of text.