示例#1
0
 public QuarterlyDatabase()
 {
     Sub = null;
     Tag = null;
     Num = null;
     Pre = null;
 }
示例#2
0
        public bool Load(string databaseLocation)
        {
            var subPath = Path.Combine(databaseLocation, "sub.txt");

            Sub = new SubFile();
            var subLoad = Sub.Load(subPath);

            if (subLoad == false)
            {
                return(false);
            }

            var tagPath = Path.Combine(databaseLocation, "tag.txt");

            Tag = new TagFile();
            var tagLoad = Tag.Load(tagPath);

            if (tagLoad == false)
            {
                return(false);
            }

            var numPath = Path.Combine(databaseLocation, "num.txt");

            Num = new NumFile();
            var numLoad = Num.Load(numPath);

            if (numLoad == false)
            {
                return(false);
            }

            var prePath = Path.Combine(databaseLocation, "pre.txt");

            Pre = new PreFile();
            var preLoad = Pre.Load(prePath);

            if (preLoad == false)
            {
                return(false);
            }

            return(true);
        }