R.cs 1.4 KB

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