Program.cs 1017 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using MediII.Adapter.Scanner;
  6. using MediII.Adapter.Scan.Interface;
  7. namespace MediII.Adapter.WinForm.Scanner
  8. {
  9. class Program
  10. {
  11. static Scaner scanner = new Scaner();
  12. static void Main(string[] args)
  13. {
  14. //try
  15. //{
  16. // var sca = new BizComponent_MFN();
  17. //}
  18. //catch (Exception ex)
  19. //{
  20. // Console.WriteLine(ex.Message);
  21. //}
  22. args = new string[] { "UE" };
  23. if (args.Length > 0)
  24. {
  25. string dllPath = System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, args[0]);
  26. string path = Environment.GetEnvironmentVariable("path") + ";" + dllPath;
  27. Environment.SetEnvironmentVariable("path", path);
  28. scanner.Start(new string[] { dllPath });
  29. }
  30. Console.Read();
  31. }
  32. }
  33. }