Esempio n. 1
0
        public familiesFamilylistFamily GetFamily(string path)
        {
            familiesFamilylistFamily fixt = null;

            try
            {
                if (this != null)
                {
                    string id = GetArticleNumberFromFilename(path);

                    foreach (familiesFamilylistFamily itemFamily in this.familylist)
                    {
                        if (id == itemFamily.id)
                        {
                            fixt = itemFamily;
                            break;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                log.Error(ex.Message, ex);
            }
            return(fixt);
        }
Esempio n. 2
0
        public familiesFamilylistFamily GetFamily(string path, ref CadDev.LogManager.LogDLG log)
        {
            familiesFamilylistFamily fixt = null;

            try
            {
                if (this != null)
                {
                    string id = GetArticleNumberFromFilename(path, ref log);

                    foreach (familiesFamilylistFamily itemFamily in this.familylist)
                    {
                        if (id == itemFamily.id)
                        {
                            fixt = itemFamily;
                            break;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                log.AddLogEntry(ex.Message, CadDev.LogManager.LogLevel.Critical, null);
            }
            return(fixt);
        }
Esempio n. 3
0
        public bool ContainsFamilyFile(string pathname)
        {
            bool contains = false;

            try
            {
                if (this != null)
                {
                    string id = GetArticleNumberFromFilename(pathname);
                    familiesFamilylistFamily fam = GetFamily(pathname);
                    if (fam != null && fam.id == id)
                    {
                        contains = true;
                    }
                }
            }
            catch (Exception ex)
            {
                log.Error(ex.Message, ex);
            }
            return(contains);
        }
Esempio n. 4
0
        public bool ContainsFamilyFile(string pathname, ref CadDev.LogManager.LogDLG log)
        {
            bool contains = false;

            try
            {
                if (this != null)
                {
                    string id = GetArticleNumberFromFilename(pathname, ref log);
                    familiesFamilylistFamily fam = GetFamily(pathname, ref log);
                    if (fam != null && fam.id == id)
                    {
                        contains = true;
                    }
                }
            }
            catch (Exception ex)
            {
                log.AddLogEntry(ex.Message, CadDev.LogManager.LogLevel.Critical, null);
            }
            return(contains);
        }