public BC_Issue GetIssueByIndex(uint idx) { global::System.IntPtr cPtr = BIMcollab_ProjectPINVOKE.BC_Project_GetIssueByIndex(swigCPtr, idx); BC_Issue ret = (cPtr == global::System.IntPtr.Zero) ? null : new BC_Issue(cPtr, false); if (BIMcollab_ProjectPINVOKE.SWIGPendingException.Pending) { throw BIMcollab_ProjectPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void CreateNewIssue() { List <string> milestones = this.activeProject.Milestones; List <string> areas = this.activeProject.Areas; List <string> labels = this.activeProject.Labels; List <string> types = this.activeProject.Types; List <string> priorities = this.activeProject.Priorities; List <string> statuses = this.activeProject.Statuses; BC_Issue newIssue = this.activeProject.CreateIssue(); this.issue = new Issue(newIssue, ref milestones, ref areas, ref labels, ref types, ref priorities, ref statuses); this.Load(); }
public Issue(BC_Issue issue, ref List <string> milestones, ref List <string> areas, ref List <string> labels, ref List <string> types, ref List <string> priorities, ref List <string> statuses) { this.issue = issue; this.Milestone = milestones[(int)this.MilestoneID]; this.Area = areas[(int)this.AreaID]; this.Type = types[(int)this.TypeID]; this.Priority = priorities[(int)this.PriorityID]; this.Status = statuses[(int)this.StatusID]; this.Labels = this.CreateLabels(ref labels); }
private void GetIssues() { List <string> milestones = this.activeProject.Milestones; List <string> areas = this.activeProject.Areas; List <string> labels = this.activeProject.Labels; List <string> types = this.activeProject.Types; List <string> priorities = this.activeProject.Priorities; List <string> statuses = this.activeProject.Statuses; uint numberOfIssues = this.activeProject.GetNumberOfIssues(); for (uint i = 0; i < numberOfIssues; i++) { BC_Issue issue = this.activeProject.GetIssueByIndex(i); this.Issues.Add(new Issue(issue, ref milestones, ref areas, ref labels, ref types, ref priorities, ref statuses)); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BC_Issue obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }