예제 #1
0
파일: Program.cs 프로젝트: sgstair/ledsign
        static void Main(string[] args)
        {
            // Enter into a test loop
            TestLoop t = new TestLoop();

            if (args.Length >= 1)
            {
                string filename = args[0];
                string basePath = Environment.CurrentDirectory;
                while(filename.StartsWith("..\\"))
                {
                    basePath = Directory.GetParent(basePath).FullName;
                    filename = filename.Substring(3);
                }
                filename = System.IO.Path.Combine(basePath, filename);

                t.SetFpgaFilename(filename);
            }

            t.Run();
        }
예제 #2
0
파일: Program.cs 프로젝트: sgstair/ledsign
        static void Main(string[] args)
        {
            // Enter into a test loop
            TestLoop t = new TestLoop();

            if (args.Length >= 1)
            {
                string filename = args[0];
                string basePath = Environment.CurrentDirectory;
                while (filename.StartsWith("..\\"))
                {
                    basePath = Directory.GetParent(basePath).FullName;
                    filename = filename.Substring(3);
                }
                filename = System.IO.Path.Combine(basePath, filename);

                t.SetFpgaFilename(filename);
            }

            t.Run();
        }