public void SetErrors(int check)
        {
            ErrorList = new List <Error>();

            if (Attributes == null)
            {
                Attributes = new Dictionary <string, List <string> >();
            }
            if (!Attributes.ContainsKey("sz"))
            {
                Attributes.Add(docDefaults.Keys.First(x => x == "sz"), docDefaults["sz"]);
                checkNum = check; //Delete this
            }
            if (!Attributes.ContainsKey("rFonts"))
            {
                Attributes.Add(docDefaults.Keys.First(x => x == "rFonts"), docDefaults["rFonts"]);
                checkNum = check; //Delete this
            }

            parParams = new ParagraphParameters(Attributes["sz"][0], Attributes["rFonts"][0]);

            foreach (var param in parParams.Parameters)
            {
                if (parParams.Parameters[param.Key] != template.ParagraphParameters.Parameters[param.Key])
                {
                    ErrorList.Add(new Error(param.Key, param.Value, template.ParagraphParameters.Parameters[param.Key]));
                }
            }
        }
        public CourseWork()
        {
            GlobalParameters = new GlobalParameters(
                Math.Round(2 * Consts.Sm).ToString(),
                Math.Round(1.5 * Consts.Sm).ToString(),
                Math.Round(2 * Consts.Sm).ToString(),
                Math.Round(3 * Consts.Sm).ToString());



            ParagraphParameters = new ParagraphParameters((14 * Consts.Pt).ToString(), "Times New Roman");
        }