//----------------------------- private ScriptCollection getModified() { ScriptCollection r = new ScriptCollection(); foreach (ScriptItem script in ScriptMgr.Items) { if (!script.IsModified) { continue; } r.AddNotExists(script); script.Level = 0; // string super_name = script.GetSuper(); if (string.IsNullOrEmpty(super_name)) { continue; } ScriptItem super_script = ScriptMgr.Get(super_name); while (super_script != null) { r.AddNotExists(super_script); super_script.Level = 0; // super_name = super_script.GetSuper(); if (string.IsNullOrEmpty(super_name)) { break; } super_script = ScriptMgr.Get(super_name); } } return(r); }