Example #1
0
        void SerializeNewXmlWithFormatPlugin(object PluginNameObject)
        {
            string PluginName = PluginNameObject.ToString();

            try
            {
                Response     Res         = DisplayedResponse.GetClone(true);
                FormatPlugin FP          = FormatPlugin.Get(PluginName);
                Response     NewResponse = FP.ToResponseFromXml(Res, CurrentFormatXml);
                this.DisplayedResponse = NewResponse;
                ShowStatusMsg("");
                this.SetNonFormatPluginResponseFields(NewResponse);
                ShowProgressBar(false);
                CheckAndShowReflection();
            }
            catch (ThreadAbortException)
            {
                ShowStatusMsg("");
            }
            catch (Exception Exp)
            {
                IronException.Report(string.Format("Error converting {0} to Response", PluginName), Exp);
                ShowErrorMsg(string.Format("Unable to update edited values in {0}", PluginName));
                ShowProgressBar(false);
            }
        }