public MainViewModel(SystemMessenger sysMessenger) : base(sysMessenger) { _SelectedPageIndex = 0; MessengerInstance.Register <LoadingMessage>(this, NotifyMe); MessengerInstance.Register <MainViewMessage>(this, NotifyMe); }
public SettingViewModel(ITFService tfsService, SystemMessenger sysMessenger) : base(sysMessenger) { _tfsService = tfsService; _VerifyConnectionCommand = new DelegateCommand <object>(VerifyConnectionCommand_Execute, VerifyConnectionCommand_CanExecute); _VSTSUrl = UserSetting.TFSCollectionUri; _VSTSProjectName = UserSetting.TFSProjectName; _VSTSUsername = UserSetting.TFSUsername; _VSTSPassword = UserSetting.TFSPassword; PropertyChanged += SettingViewModel_PropertyChanged; }
public ChangesetQueryViewModel(ITFService tfsService, SystemMessenger sysMessenger) : base(sysMessenger) { _tfsService = tfsService; _LoadedCommand = new DelegateCommand <object>(LoadedCommand_Execute); _ExecuteQueryCommand = new DelegateCommand <object>(ExecuteQueryCommand_Execute); _CheckChangesetCommand = new DelegateCommand <object>(CheckChangesetCommand_Execute, CheckChangesetCommand_CanExecute); _LoadMoreCommand = new DelegateCommand <object>(LoadMoreCommand_Execute, LoadMoreCommand_CanExecute); _ResultChangeset = new ObservableCollection <VSTSChangeset>(); PropertyChanged += ChangesetQueryViewModel_PropertyChanged; ResultChangeset.CollectionChanged += ResultChangeset_CollectionChanged; }