Ejemplo n.º 1
0
            public void Load(string listing, string field, List <BootFile> files)
            {
                XmlDbTable table = GetTable(listing);

                if (table != null)
                {
                    if ((table.Rows == null) || (table.Rows.Count == 0))
                    {
                        BooterLogger.AddError(mName + ": " + table + " table empty");
                    }
                    else
                    {
                        BooterLogger.AddTrace(mName + ": Found " + listing + " = " + table.Rows.Count);

                        foreach (XmlDbRow row in table.Rows)
                        {
                            BootFile file = new DataBootFile(mName, row.GetString(field), false);
                            if (file.IsValid)
                            {
                                files.Add(file);
                            }
                        }
                    }
                }
                else
                {
                    BooterLogger.AddTrace(mName + ": No " + listing + " Table");
                }
            }
Ejemplo n.º 2
0
            public DataBootTable(DataBootFile file, string table)
            {
                mName = table;

                if (file != null)
                {
                    mFile  = file;
                    mTable = file.GetTable(table);
                }
            }
Ejemplo n.º 3
0
            public DataBootTable(DataBootFile file, string table)
            {
                mName = table;

                if (file != null)
                {
                    mFile = file;
                    mTable = file.GetTable(table);
                }
            }
Ejemplo n.º 4
0
            public void Load(string listing, string field, List<BootFile> files)
            {
                XmlDbTable table = GetTable(listing);
                if (table != null)
                {
                    if ((table.Rows == null) || (table.Rows.Count == 0))
                    {
                        BooterLogger.AddError(mName + ": " + table + " table empty");
                    }
                    else
                    {
                        BooterLogger.AddTrace(mName + ": Found " + listing + " = " + table.Rows.Count);

                        foreach (XmlDbRow row in table.Rows)
                        {
                            BootFile file = new DataBootFile(mName, row.GetString(field), false);
                            if (file.IsValid)
                            {
                                files.Add(file);
                            }
                        }
                    }
                }
                else
                {
                    BooterLogger.AddTrace(mName + ": No " + listing + " Table");
                }
            }