Exemplo n.º 1
0
 public void Save()
 {
     try
     {
         XmlDocument          doc = createFlowXml(ActionFlows.ToList());
         StringBuilder        sb  = new StringBuilder();
         System.IO.TextWriter tr  = new System.IO.StringWriter(sb);
         XmlTextWriter        wr  = new XmlTextWriter(tr);
         wr.Formatting = Formatting.None;
         doc.Save(wr);
         wr.Close();
         Settings.Settings.Default.ActionBuilderFlowsXml = sb.ToString();
     }
     catch
     {
     }
 }
Exemplo n.º 2
0
 public void Save()
 {
     try
     {
         XmlDocument          doc = createFlowXml(ActionFlows.ToList());
         StringBuilder        sb  = new StringBuilder();
         System.IO.TextWriter tr  = new System.IO.StringWriter(sb);
         XmlTextWriter        wr  = new XmlTextWriter(tr);
         wr.Formatting = Formatting.None;
         doc.Save(wr);
         wr.Close();
         Core.Settings.Default.ActionBuilderFlowsXml = sb.ToString();
     }
     catch (Exception e)
     {
         Core.ApplicationData.Instance.Logger.AddLog(this, e);
     }
 }