Ejemplo n.º 1
0
        public bool CreateConfig(Form parentForm, out string configXmlString)
        {
            configXmlString = "";
            FormRequestResponseChannelConfig frm = new FormRequestResponseChannelConfig(_param, null);

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

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