Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public ReviewDetailsPresenter(IReviewDetailsView view, GetDiff getDiff)
 {
     _view    = view;
     _getDiff = getDiff;
 }