private void LoadIssuesToShow() { issueList = controller.GetOpenIssuesFromProject(JiraConfigurationHelper.getCurrentProjectKey()); grdIssues.DataSource = issueList; grdIssues.AutoGenerateColumns = true; grdIssues.Columns.Insert(0, new DataGridViewCheckBoxColumn()); // Don't allow the column to be resizable. grdIssues.Columns[0].Resizable = DataGridViewTriState.False; // Make the check box column frozen so it is always visible. grdIssues.Columns[0].Frozen = true; // Put an extra border to make the frozen column more visible grdIssues.Columns[0].DividerWidth = 1; // Auto size columns after the grid data binding is complete. grdIssues.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells); foreach (DataGridViewRow row in grdIssues.Rows) { row.Tag = issueList[row.Index]; } }
internal void RefreshIssuesToShow() { //Get the unresolved issues cache from the controller issueList = controller.GetOpenIssuesFromProject(JiraConfigurationHelper.getCurrentProjectKey()); //rebind the list this.grdIssues.DataSource = issueList; //save the tag object for each row foreach (DataGridViewRow row in grdIssues.Rows) { row.Tag = issueList[row.Index]; } //redraw the grid this.grdIssues.Invalidate(); }
private void RefreshIssues() { this.InvalidateUnresolvedIssuesCache(); this.unresolvedIssuesCache = GetOpenIssuesFromProject(JiraConfigurationHelper.getCurrentProjectKey()); MainToolbar.RefreshIssuesToShow(); }
/// <summary> /// Gets a list of Version ID's according to those Versions Names /// </summary> /// <param name="versionNames">The list containing the versions names whose IDs we want to get</param> /// <returns>A list containing the IDs of the appropiate versions</returns> public List <string> GetVersionsIdsFromVersionNames(string[] versionNames) { List <string> versionIDs = new List <string>(); RemoteVersion[] projectVersions = JiraSoapHelper.GetJiraSoapServiceProxy().getVersions(AuthenticationToken, JiraConfigurationHelper.getCurrentProjectKey()); foreach (string name in versionNames) { foreach (RemoteVersion projectVersion in projectVersions) { if (projectVersion.name.Equals(name)) { versionIDs.Add(projectVersion.id); break; } } } return(versionIDs); }