//private IList<ICEPullRequest> _pullRequests = new List<ICEPullRequest>(); //public IList<ICEPullRequest> PullRequests //{ // get // { // return _pullRequests; // } // set // { // _pullRequests = value; // OnPropertyChanged("PullRequests"); // } //} //private IList<ICEBuildDetails> _builds = new List<ICEBuildDetails>(); //public IList<ICEBuildDetails> Builds //{ // get // { // return _builds; // } // set // { // _builds = value; // OnPropertyChanged("Builds"); // } //} #endregion #region ctor/init public IssueDashboardPresenter(IIssueDashboard window, ICEWorkItemService workItemService) { _window = window; _workItemService = workItemService; _lastUpdate = DateTime.MinValue; InitializePresenter(); }
private void InitializeAccounts() { try { var jiraProfile = AccountProfileHelper.GetJIRAAccountInfo(); _jiraService = CECode.Business.Services.ServiceFactory.GetCEJiraService(jiraProfile.URL, jiraProfile.Login, jiraProfile.Password); var gitHubProfile = AccountProfileHelper.GetGitHubAccountInfo(); _gitHubService = CECode.Business.Services.ServiceFactory.GetCEGitHubService(gitHubProfile.Login, gitHubProfile.Token, gitHubProfile.Owner); var teamCityProfile = AccountProfileHelper.GetTeamCityAccountInfo(); _teamCityService = CECode.Business.Services.ServiceFactory.GetCETeamCityService(teamCityProfile.Login, teamCityProfile.Password); _workItemService = CECode.WorkItem.Services.ServiceFactory.GetCEWorkItemService(_jiraService, _gitHubService, _teamCityService); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }