public TablesViewController(SQLiteConnection connection) { if (connection == null) { throw new ArgumentNullException("connection"); } Connection = connection; TableMappings = Connection.TableMappings.ToArray(); UITable = new UITableView(SQLiteAdmin.GetTableRect(), UITableViewStyle.Plain); DataSource = new Data(this); UITable.DataSource = DataSource; UITable.Delegate = new Del(this); }
public TableViewController(TableMapping table, SQLiteConnection connection) { if (table == null) { throw new ArgumentNullException("table"); } if (connection == null) { throw new ArgumentNullException("connection"); } Table = table; Connection = connection; Rows = new List <object>(); UITable = new UITableView(SQLiteAdmin.GetTableRect(), UITableViewStyle.Plain); UITable.DataSource = new Data(this); GetMoreData(); UITable.ReloadData(); }