public TfsSolutionInfoViewModel(ITfsInfoService infoService)
        {
            if (infoService == null)
            {
                throw new ArgumentNullException("infoService");
            }

            _infoService = infoService;

            infoService.SolutionInfoChanged += (s, e) => UpdateInfo();

            // first time.
            UpdateInfo();

            this.RefreshInfoCommand = new ViewModelCommand(p => _infoService.RefreshInfo());
        }
Example #2
0
        public TfsSolutionInfoViewModel(ITfsInfoService infoService)
        {
            if (infoService == null)
            {
                throw new ArgumentNullException("infoService");
            }

            _infoService = infoService;

            infoService.SolutionInfoChanged += (s, e) => UpdateInfo();

            // first time.
            UpdateInfo();

            this.RefreshInfoCommand = new ViewModelCommand(p => _infoService.RefreshInfo());
        }