public TableModel Construct() { TableModel createdTable = new TableModel(TableState, TransactionType, Transaction); TableState.SetTableModel(createdTable); createdTable.X = X; createdTable.Y = Y; createdTable.width = Width; createdTable.height = Height; createdTable.TableId = TableId; return(createdTable); }