/// <summary>
 /// Invokes CSExecutor (C# script engine)
 /// </summary>
 public void Execute(PrintDelegate print, string[] args, bool rethrow)
 {
     // AppInfo.appName = new FileInfo(Application.ExecutablePath).Name;
     CSExecutor exec = new CSExecutor();
     exec.Rethrow = rethrow;
     exec.Execute(args, print != null ? print : DefaultPrint);
 }
        //Keep For Later Investigations! - Ashly

        //private Dictionary<string, string> ScriptList;
        ///// <summary>
        ///// This will get the Script Listing and Convert it to a Dictonary for later use.
        ///// </summary>
        //public void GetScriptList()
        //{
        //    DirectoryInfo di = new DirectoryInfo("Scripts/");
        //    FileInfo[] aoscripts = di.GetFiles("*.cs");

        //    foreach (FileInfo fi in aoscripts)
        //    {
        //        ScriptList.Add("ScriptName", fi.Name);
        //    }
        //}
        //public void InitalizeScripts()
        //{

        //}

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main(string[] args)
        {
            // AppInfo.appName = new FileInfo(Application.ExecutablePath).Name;

            CSExecutor exec = new CSExecutor();
            exec.Execute(args, Print);
        }
예제 #3
0
        //Keep For Later Investigations! - Ashly

        //private Dictionary<string, string> ScriptList;
        ///// <summary>
        ///// This will get the Script Listing and Convert it to a Dictonary for later use.
        ///// </summary>
        //public void GetScriptList()
        //{
        //    DirectoryInfo di = new DirectoryInfo("Scripts/");
        //    FileInfo[] aoscripts = di.GetFiles("*.cs");

        //    foreach (FileInfo fi in aoscripts)
        //    {
        //        ScriptList.Add("ScriptName", fi.Name);
        //    }
        //}
        //public void InitalizeScripts()
        //{

        //}

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main(string[] args)
        {
            // AppInfo.appName = new FileInfo(Application.ExecutablePath).Name;

            CSExecutor exec = new CSExecutor();

            exec.Execute(args, Print);
        }
        /// <summary>
        /// Invokes CSExecutor (C# script engine)
        /// </summary>
        public static void Execute(PrintDelegate print, string[] args)
        {
            // AppInfo.appName = exename;
            CSExecutor exec = new CSExecutor();

            exec.Rethrow = Rethrow;
            exec.Execute(args, print != null ? print : DefaultPrint);
        }
예제 #5
0
        /// <summary>
        /// Invokes CSExecutor (C# script engine)
        /// </summary>
        public void Execute(PrintDelegate print, string[] args, bool rethrow)
        {
            // AppInfo.appName = new FileInfo(Application.ExecutablePath).Name;
            CSExecutor exec = new CSExecutor();

            exec.Rethrow = rethrow;
            exec.Execute(args, print != null ? print : DefaultPrint);
        }
예제 #6
0
        /// <summary>
        /// Invokes CSExecutor (C# script engine)
        /// </summary>
        public static void Execute(PrintDelegate print, string[] args)
        {
            // AppInfo.appName = exename;
            CSExecutor exec = new CSExecutor();

            exec.Rethrow = Rethrow;
            exec.Execute(args, print != null ? print : DefaultPrint);
        }