예제 #1
0
        /// <summary>
        /// This is a very basic test where simply "ok" is returned.
        /// </summary>
        static private void CheckForms(string return_xml)
        {
            var return_parameter_list = new L2A.UTIL.ParameterList();

            return_parameter_list.options_["form_result"] = "ok";

            // Write the parameter list to string.
            string xml_string = return_parameter_list.ToString("LaTeX2AI_form_result");

            using (System.IO.StreamWriter file = new System.IO.StreamWriter(return_xml, false))
            {
                file.WriteLine(xml_string);
            }
        }
예제 #2
0
파일: base.cs 프로젝트: stoani89/LaTeX2AI
        public virtual void ThisFormClosed(object sender, FormClosedEventArgs e)
        {
            // When the form is closed, write the result xml.

            // Add the form result value.
            L2A.UTIL.ParameterList root_parameter_list = new L2A.UTIL.ParameterList();
            root_parameter_list.options_["form_result"] = form_result_;

            // If a option parameter list exits, add it.
            if (return_parameter_list_ != null)
            {
                root_parameter_list.sub_lists_["LaTeX2AI_form_result"] = return_parameter_list_;
            }

            // Write the parameter list to string.
            string xml_string = root_parameter_list.ToString("LaTeX2AI_form_result");

            using (System.IO.StreamWriter file = new System.IO.StreamWriter(return_xml_, false))
            {
                file.WriteLine(xml_string);
            }
        }