public ReviewDetails(string title, Review review, GetDiff getDiff) { if (review == null) { throw new ArgumentNullException("review"); } _review = review; InitializeComponent(); Title = title; Background = IbApplication.BackgroundBrush; DiffProgress.ProgressTitle = Strings.ReviewDetails_GeneratingDiff; _presenter = new ReviewDetailsPresenter(this, getDiff); Users.Reviewers = _presenter.Users; Groups.Reviewers = _presenter.Groups; foreach (var user in _presenter.SelectedUsers) { Users.Combo.SelectedItems.Add(user); } foreach (var group in _presenter.SelectedGroups) { Groups.Combo.SelectedItems.Add(group); } InitialiseData(); }
public ReviewDetails(string title, Review review, GetDiff getDiff) { if (review == null) { throw new ArgumentNullException("review"); } _review = review; InitializeComponent(); Title = title; Background = IbApplication.BackgroundBrush; DiffProgress.ProgressTitle = Strings.ReviewDetails_GeneratingDiff; _presenter = new ReviewDetailsPresenter(this, getDiff); Users.Reviewers = _presenter.Users; Groups.Reviewers = _presenter.Groups; InitialiseData(); }
public ReviewDetailsPresenter(IReviewDetailsView view, GetDiff getDiff) { _view = view; _getDiff = getDiff; }