private void getProjectData() { try { ProjectService.PrjAPIService local = new ProjectService.PrjAPIService(); local.Url = serviceUtil.getPpolURL() + "/cxf/PrjAPI"; prjList = local.getAllProjects(serviceUtil.getPpolAccount(), serviceUtil.getUserName(), serviceUtil.getPassword()); if (prjList == null || prjList.list.Length == 0) { MessageBox.Show("Projects are not found in your PlanPlus Online account."); } else { this.grdProjects.Rows.Clear(); for (int i = 0; i < prjList.list.Length; i++) { ProjectService.project project = (ProjectService.project)prjList.list[i]; this.grdProjects.Rows.Add(); this.grdProjects.Rows[i].Cells[0].Value = project.projectId; this.grdProjects.Rows[i].Cells[1].Value = project.projectName; this.grdProjects.Rows[i].Cells[2].Value = project.description; } } } catch (Exception ex) { ClassFactory.Instance.ConnectionProblem(ex); } }
private void getProjectData() { try { ProjectService.PrjAPIService local = new ProjectService.PrjAPIService(); local.Url = serviceUtil.getPpolURL() + "/cxf/PrjAPI"; prjList = local.getAllProjects(serviceUtil.getPpolAccount(), serviceUtil.getUserName(), serviceUtil.getPassword()); if (prjList == null || prjList.list.Length == 0) { this.cbProjects.Items.Add("Projects are not found in your PlanPlus Online account."); } else { this.cbProjects.Items.Add(""); for (int i = 0; i < prjList.list.Length; i++) { ProjectService.project project = (ProjectService.project)prjList.list[i]; this.cbProjects.Items.Add(project.projectId + "-" + project.projectName); } } } catch (Exception ex) { ClassFactory.Instance.ConnectionProblem(ex); } }