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]; } }
public BusinessObjectBindingList <Issue> GetAllIssuesFromProject(string projectName) { BusinessObjectBindingList <Issue> issues = null; try { issues = Proxy.GetAllIssuesFromProject(projectName); } catch (Exception ex) { HandleException(ex); } return(issues); }
/// <summary> /// Gets all the unresolved issues assigned to the current user and store them into a local cache /// </summary> /// <param name="projectKey"></param> /// <returns></returns> public BusinessObjectBindingList <Issue> GetOpenIssuesFromProject(string projectKey) { try{ if (this.unresolvedIssuesCache == null) { unresolvedIssuesCache = Proxy.GetOpenIssuesFromProject(projectKey); } } catch (Exception ex) { HandleException(ex); } return(unresolvedIssuesCache); }
/// <summary> /// Gets all the issues of the selected project assigned to the current user of JiraConnector /// </summary> /// <param name="projectName">The project name as stated in the Jira Configuration</param> /// <returns>A Bindable list of <c>Issue</c> entities </returns> public BusinessObjectBindingList<Issue> GetAllIssuesFromProject(string projectName) { List<Issue> issues; BusinessObjectBindingList<Issue> ret = new BusinessObjectBindingList<Issue>(); try { issues = Provider.GetAllIssuesFromProjectAssignedToCurrentUser(projectName); foreach (Issue i in issues) { ret.Add(i); } }catch (Exception ex) { ExceptionManager.PublishException(ex); } return ret; }
/// <summary> /// Gets all the issues of the selected project assigned to the current user of JiraConnector /// </summary> /// <param name="projectName">The project name as stated in the Jira Configuration</param> /// <returns>A Bindable list of <c>Issue</c> entities </returns> public BusinessObjectBindingList <Issue> GetAllIssuesFromProject(string projectName) { List <Issue> issues; BusinessObjectBindingList <Issue> ret = new BusinessObjectBindingList <Issue>(); try { issues = Provider.GetAllIssuesFromProjectAssignedToCurrentUser(projectName); foreach (Issue i in issues) { ret.Add(i); } }catch (Exception ex) { ExceptionManager.PublishException(ex); } return(ret); }
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 InvalidateUnresolvedIssuesCache() { this.unresolvedIssuesCache = null; }
private void RefreshIssues() { this.InvalidateUnresolvedIssuesCache(); this.unresolvedIssuesCache = GetOpenIssuesFromProject(JiraConfigurationHelper.getCurrentProjectKey()); MainToolbar.RefreshIssuesToShow(); }
/// <summary> /// Gets all the unresolved issues assigned to the current user and store them into a local cache /// </summary> /// <param name="projectKey"></param> /// <returns></returns> public BusinessObjectBindingList<Issue> GetOpenIssuesFromProject(string projectKey){ try{ if (this.unresolvedIssuesCache == null) { unresolvedIssuesCache = Proxy.GetOpenIssuesFromProject(projectKey); } } catch (Exception ex){ HandleException(ex); } return unresolvedIssuesCache; }
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(); }