Beispiel #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;
        }
Beispiel #2
0
        private void ExcitationButton_Click(object sender, EventArgs e)
        {
            Form excitation = new FormExcitation();

            excitation.ShowDialog();
            InformationText.Clear();
            InformationText.Text       = @"Click Excitation";
            ExcitationButton.BackColor = Color.MistyRose;
        }