R.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Forms;
  8. using Y.Utils.IOUtils.LogUtils;
  9. namespace Oreo.VersionUpdate.Commons
  10. {
  11. public class R
  12. {
  13. internal static string AppName = "Oreo.VersionUpdate";
  14. internal static DateTime StartTime = DateTime.Now;
  15. internal static string MachineName = Environment.MachineName;
  16. internal static Module Module = Assembly.GetExecutingAssembly().GetModules()[0];
  17. internal static string AesKey = "12345678901234567890123456789012";
  18. public static Log Log = new Log();
  19. public static LogLevel LogLevel = LogLevel.None;
  20. public static class Paths
  21. {
  22. public static string App = AppDomain.CurrentDomain.BaseDirectory;
  23. public static string Temp = App + "Temp\\";
  24. }
  25. public static class Files
  26. {
  27. public static string App = Application.ExecutablePath;
  28. public static string Settings = Paths.App + "\\upd.ini";
  29. public static string Whatsnew = Paths.App + "\\Whatsnew.txt";
  30. }
  31. public static class Settings
  32. {
  33. public static class Version
  34. {
  35. public static string Number = "0.0.0.0";
  36. }
  37. public static class FTP
  38. {
  39. public static string Address = "192.168.3.56";
  40. public static string Account = "Administrator";
  41. public static string Password = "yuzhengyang";
  42. }
  43. }
  44. }
  45. }