Ejemplo n.º 1
0
 public int Add(ref AcadApplication robjAcadApplication)
 {
     checked
     {
         mlngApplicationIndex++;
         mcolClass.Add("K" + Conversions.ToString(mlngApplicationIndex), robjAcadApplication);
         return(mlngApplicationIndex);
     }
 }
Ejemplo n.º 2
0
        internal AcadApplication FriendGetItem(int vlngIndex)
        {
            AcadApplication FriendGetItem = default(AcadApplication);

            try
            {
                FriendGetItem = (AcadApplication)mcolClass["K" + Conversions.ToString(vlngIndex)];
                return(FriendGetItem);
            }
            catch (Exception ex2)
            {
                ProjectData.SetProjectError(ex2);
                Exception ex = ex2;
                ProjectData.ClearProjectError();
                return(FriendGetItem);
            }
        }
Ejemplo n.º 3
0
        internal void FriendOpen(string nvstrAcadVer = "AC1018")
        {
            if (mblnOpened)
            {
                return;
            }
            string left = Strings.UCase(nvstrAcadVer);

            if (Operators.CompareString(left, "AC1015", TextCompare: false) != 0)
            {
                if (Operators.CompareString(left, "AC1018", TextCompare: false) == 0)
                {
                    mstrAcadVer = "AC1018";
                }
                else
                {
                    mstrAcadVer = "AC1018";
                }
            }
            else
            {
                mstrAcadVer = "AC1015";
            }
            string left2 = mstrAcadVer;

            if (Operators.CompareString(left2, "AC1015", TextCompare: false) != 0)
            {
                if (Operators.CompareString(left2, "AC1018", TextCompare: false) == 0)
                {
                    hwpDxf_Vars.pvarSupportedAcadVer = new string[2]
                    {
                        "AC1015",
                        "AC1018"
                    };
                }
            }
            else
            {
                hwpDxf_Vars.pvarSupportedAcadVer = new string[1]
                {
                    "AC1015"
                };
            }
            hwpDxf_Init.BkDXF_InitDefObjValues();
            hwpDxf_Vars.pobjSysVars = new SysVars();
            mblnOpened = true;
            base.FriendLetNodeImageEnabledID  = 103;
            base.FriendLetNodeImageDisabledID = 104;
            base.FriendLetNodeName            = "Applikation";
            base.FriendLetNodeText            = "Applikation";
            object robjObject = this;

            FriendAddToCollection(ref robjObject);
            hwpDxf_Vars.pblnAddDocument = false;
            hwpDxf_Vars.pblnAddDatabase = false;
            AcadApplications pobjAcadApplications = hwpDxf_Vars.pobjAcadApplications;
            AcadApplication  robjAcadApplication  = this;

            mlngApplicationIndex = pobjAcadApplications.Add(ref robjAcadApplication);
            mstrAppPath          = hwpDxf_Vars.pstrAppPath;
            mstrAppVersion       = hwpDxf_Vars.pstrAppVersion;
            mlngShowMode         = 31;
            mblnToolbarVisible   = true;
            mobjAcadSysVars      = new AcadSysVars();
            mobjAcadSysVars.FriendLetNodeParentID     = base.NodeID;
            mobjAcadSysVars.FriendLetApplicationIndex = mlngApplicationIndex;
            mobjAcadSysVars.FriendOpen(hwpDxf_Enums.REF_TYPE.rtApplication);
            InternSetVarsByDefault();
            mobjAcadDocuments = new AcadDocuments();
            mobjAcadDocuments.FriendInit(mstrAcadVer, base.NodeID, mlngApplicationIndex);
        }