コード例 #1
0
        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;
        }
コード例 #2
0
        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();
        }