protected virtual void LoadStartupFiles ()
{
string dir = Path.Combine (
Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData),
"csharp");
if (!Directory.Exists (dir))
return;
List<string> sources = new List<string> ();
List<string> libraries = new List<string> ();
foreach (string file in System.IO.Directory.GetFiles (dir)){
string l = file.ToLower ();
if (l.EndsWith (".cs"))
sources.Add (file);
else if (l.EndsWith (".dll"))
libraries.Add (file);
}
foreach (string file in libraries)
Evaluator.LoadAssembly (file);
ExecuteSources (sources, true);
}