/// <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); } }
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); } }