Beispiel #1
0
        private bool SyncXml()
        {
            //Force XML sync back to session repo before beginning save
            string xml = _ed.XmlContent;

            try
            {
                using (var ms = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
                {
                    _svc.CurrentConnection.ResourceService.SetResourceXmlData(_svc.EditedResourceID, ms);
                }
                return(true);
            }
            catch (Exception ex)
            {
                XmlContentErrorDialog.CheckAndHandle(ex, xml, false);
                return(false);
            }
        }