コード例 #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
     {
     }
 }
コード例 #2
0
ファイル: Manager.cs プロジェクト: pheijmans-zz/GAPP
 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);
     }
 }