public Project(string username, string password)
        {
            BC_DataModel dataModel = BC_DataModel.GetInstance();

            dataModel.SetActiveUser(string.Empty,
                                    string.Empty,
                                    password,
                                    username,
                                    string.Empty);

            dataModel.Connect("playground.bimcollab.com", "460C8E9C-20E4-4188-BCA2-8E34F464C026");

            dataModel.SelectProjectByIndex(0);

            this.project = dataModel.GetActiveProject();

            this.GetMilestones();
            this.GetAreas();
            this.GetLabels();
            this.GetTypes();
            this.GetPriorities();
            this.GetStatuses();
            this.GetUsers();
            this.GetVisibilities();
        }
Ejemplo n.º 2
0
    public BC_Project GetActiveProject()
    {
        global::System.IntPtr cPtr = BIMcollab_DataModelPINVOKE.BC_DataModel_GetActiveProject(swigCPtr);
        BC_Project            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BC_Project(cPtr, false);

        if (BIMcollab_DataModelPINVOKE.SWIGPendingException.Pending)
        {
            throw BIMcollab_DataModelPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BC_Project obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }