R.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Text;
  6. using System.Windows.Forms;
  7. using Y.Utils.IOUtils.LogUtils;
  8. namespace Oreo.CleverDog.Commons
  9. {
  10. public static class R
  11. {
  12. internal static string AppName = "Oreo.CleverDog";
  13. internal static DateTime StartTime = DateTime.Now;
  14. internal static string MachineName = Environment.MachineName;
  15. internal static Module Module = Assembly.GetExecutingAssembly().GetModules()[0];
  16. internal static Log Log { get; set; }
  17. internal static string AesKey = "12345678901234567890123456789012";
  18. public static class Paths
  19. {
  20. public static string App = AppDomain.CurrentDomain.BaseDirectory;
  21. public static string Frisbee = App + "Frisbee\\";
  22. //public static string Root = App + "\\" + AppName;
  23. //public static string Data = Root + "\\Data";//应用根目录
  24. }
  25. public static class Files
  26. {
  27. public static string App = Application.ExecutablePath;
  28. //public static string Settings = Paths.Root + "\\Settings.ini";//应用配置信息目录
  29. public static string Frisbee = Paths.App + "\\Frisbee.ini";
  30. }
  31. }
  32. }