Example #1
0
    public static BC_DataModel GetInstance()
    {
        global::System.IntPtr cPtr = BIMcollab_DataModelPINVOKE.BC_DataModel_GetInstance();
        BC_DataModel          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BC_DataModel(cPtr, false);

        return(ret);
    }
        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();
        }
Example #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BC_DataModel obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }