ARCed.Scripting.ScriptManager.SaveAll C# (CSharp) Метод

SaveAll() публичный Метод

Applies changes and saves all scripts to disk
public SaveAll ( ) : void
Результат void
        public void SaveAll()
        {
            var errors = new List<string>();
            for (int i = 0; i < this.Scripts.Count; i++)
            {
                this.Scripts[i].Index = i;
                if (!this.Scripts[i].Save())
                    errors.Add(this.Scripts[i].Title);
            }
            if (errors.Count > 0)
            {
                string msg = String.Format("Failed to save the following script(s):\n{0}",
                    String.Join("\n\t", errors));
                MessageBox.Show(msg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }