Beispiel #1
0
        public bool CreateConfig(Form parentForm, out string configXmlString)
        {
            configXmlString = "";
            FormXSLTConfig frm = new FormXSLTConfig(_param, null);

            if (frm.ShowDialog(parentForm) != DialogResult.OK)
            {
                return(false);
            }
            configXmlString = frm.Config.ToXMLString();
            return(true);
        }
Beispiel #2
0
        public bool EditConfig(Form parentForm, ref string configXmlString)
        {
            XSLTConfig cfg = XObjectManager.CreateObject <XSLTConfig>(configXmlString);

            if (cfg == null)
            {
                WriteLog(LogType.Error, "Deserialize configuration object failed.");
                return(false);
            }
            else
            {
                FormXSLTConfig frm = new FormXSLTConfig(_param, cfg);
                if (frm.ShowDialog(parentForm) != DialogResult.OK)
                {
                    return(false);
                }
                configXmlString = frm.Config.ToXMLString();
                return(true);
            }
        }