fyiReporting.RdlDesign.RdlDesigner.menuEdit_FormatXml C# (CSharp) Method

menuEdit_FormatXml() private method

private menuEdit_FormatXml ( object sender, System ea ) : void
sender object
ea System
return void
        private void menuEdit_FormatXml(object sender, System.EventArgs ea)
        {
            RdlEditPreview e = GetEditor();
            if (e == null)
                return;

            if (e.Text.Length > 0)
            {
                try
                {
                    e.Text = DesignerUtility.FormatXml(e.Text);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, Strings.RdlDesigner_Showl_FormatXML);
                }
            }
        }
RdlDesigner