Exemplo n.º 1
0
        public static Document Parse(String fileName, bool answers, bool proofs)
        {
            string[] words;
            Document document = new Document();

            words         = fileName.Split('~');
            document.Type = words[0];
            switch (words[0].ToUpper())
            {
            case "CONFESSION": document = Confession.Parse(fileName, proofs); break;

            case "CATECHISM": document = Catechism.Parse(fileName, answers, proofs); break;

            case "CREED": document = Creed.Parse(fileName); break;

            default:
                ProcessError(String.Format("{0} is an invalid " + "Document type value for the Document " + "class Parse method", words[0]));
                break;
            }
            return(document);
        }
Exemplo n.º 2
0
        public static new Confession Parse(string stringValue, bool proofs)
        {
            string[]   words;
            Confession confession = new Confession();

            words               = stringValue.Split('~');
            confession.Type     = words[0];
            confession.IDNumber = Int32.Parse(words[1]);
            confession.Title    = words[2];
            confession.Chapter  = words[3];
            if (proofs)
            {
                confession.Proofs = words[4];
            }
            else
            {
                confession.Proofs = "";
            }
            confession.DocTitle = words[5];
            confession.Tags     = words[6];
            return(confession);
        }
Exemplo n.º 3
0
 public void Copy(Confession sourceConfession)
 {
     this.chapter = sourceConfession.chapter;
 }
Exemplo n.º 4
0
 public Confession(Confession sourceConfession)
 {
     this.Copy(sourceConfession);
 }