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()); }
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()); }