public RepositoryTableDelegate(ZTableView tableView, RepositoryTableDataSource datasource, IRepositoryActionProvider repositoryActionProvider) { RepositoryActionProvider = repositoryActionProvider ?? throw new ArgumentNullException(nameof(repositoryActionProvider)); TableView = tableView; DataSource = datasource; TableView.RepositoryActionRequested += TableView_RepositoryActionRequested; DataSource.CollectionChanged += ReloadTableView; }
public RepositoryTableDelegate(ZTableView tableView, RepositoryTableDataSource datasource, IRepositoryActionProvider repositoryActionProvider) { RepositoryActionProvider = repositoryActionProvider ?? throw new ArgumentNullException(nameof(repositoryActionProvider)); TableView = tableView; DataSource = datasource; TableView.RepositoryActionRequested += TableView_RepositoryActionRequested; TableView.PrepareContextMenu += TableView_PrepareContextMenu; DataSource.CollectionChanged += ReloadTableView; Humanizer = new HardcodededMiniHumanizer(); }