示例#1
0
        //Template
        public void Initialization(string xsdFile, string namespaceurl = null)
        {
            //File-
            {
                XmlElement module = Doc.CreateElement("File");
                Root.AppendChild(module);
                //IN--
                module.AppendChild(FormFile.InitialTemplate());
                //OS--
                module.AppendChild(FormBasicFunction.InitialTemplate());
            }
            //Method-
            Root.AppendChild(FormMethod.InitialTemplate());
            //EMCParameters-
            Root.AppendChild(FormFrequency.InitialTemplate());
            //Excitation-
            Root.AppendChild(FormExcitation.InitialTemplate());
            //Solution-
            Root.AppendChild(FormSolution.InitialTemplate());
            //Request-
            Root.AppendChild(FormRequest.InitialTemplate());

            _settings.Schemas.Add(namespaceurl, xsdFile);
            _settings.ValidationEventHandler += ErrorEventHanlde;

            Doc.Schemas = _settings.Schemas;
        }
示例#2
0
        private void SolutionButton_Click(object sender, EventArgs e)
        {
            Form sol = new FormSolution();

            sol.ShowDialog();
            InformationText.Clear();
            InformationText.Text     = @"Click Solution";
            SolutionButton.BackColor = Color.MistyRose;
        }