private void ShowRedmineProjects(RedmineProjects projects) { listViewProjects.Items.Clear(); foreach (RedmineProject proj in projects.ListProject) { string[] line = { proj.Value.Id.ToString(), proj.Value.Name, proj.Value.Status.ToString(), proj.Value.IsPublic.ToString(), proj.Value.CreatedOn.ToString(), proj.Value.UpdatedOn.ToString() }; ListViewItem lvi = new ListViewItem(line); listViewProjects.Items.Add(lvi); } }
public void UpdateExcelProject(RedmineProjects redmineProjects, string fileName) { OpenExcel(fileName); FindExcelSheet(workBook.Sheets, "График"); DeclareColumn(); if (workSheet != null) { } applicationExcel.Quit(); }
private void ShowRedmineIssue(RedmineProjects projects, int Id) { if (Id > 0) { listViewIssues.Items.Clear(); RedmineProject redmProject = projects.ListProject.Find(x => x.Value.Id == Id); if (redmProject != null) { foreach (Issue issue in redmProject.ListIssue) { string[] line = { issue.Id.ToString(), issue.Subject }; ListViewItem lvi = new ListViewItem(line); listViewIssues.Items.Add(lvi); } } } }