void IPresenter.ShowDialog(
            XmlNode root,
            ISampleLogAccess sampleLogAccess
            )
        {
            this.currentFormatRoot = root;
            this.sampleLogAccess   = sampleLogAccess;

            dialog.CodeTextBoxValue = root.SelectSingleNode("json/transform")?.InnerText ?? "";
            dialog.Show();
        }
        void IPresenter.ShowDialog(
            XmlNode root,
            ISampleLogAccess sampleLogAccess
            )
        {
            this.currentFormatRoot = root;
            this.sampleLogAccess   = sampleLogAccess;

            using (var sw = new StringWriter())
                using (var xw = new XmlTextWriter(sw)
                {
                    Formatting = Formatting.Indented
                })
                {
                    var nsMgr = XmlFormat.UserDefinedFormatFactory.NamespaceManager;
                    root.SelectSingleNode("xml/xsl:stylesheet", nsMgr)?.WriteTo(xw);
                    dialog.CodeTextBoxValue = sw.ToString();
                }

            dialog.Show();
        }