private void FillTable(TeamMembersTableModel teamMembersTableModel) { UITable.AddTitle(teamMembersTableModel.Title); UITable.AddHeaders(teamMembersTableModel.ColumnHeaders); List <string> content = new List <string>(); foreach (var dic in teamMembersTableModel.Data) { foreach (var column in teamMembersTableModel.ColumnHeaders) { string text = String.Empty; if (dic.TryGetValue(column, out object value)) { text = value.ToString(); } content.Add(text); } UITable.AddContent(content.ToArray()); content.Clear(); } }