R.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 ProjectRoot = @"C:\Noah\NoahSafe\\";
  24. public static string Temp = ProjectRoot + "Temp\\Update\\";
  25. }
  26. public static class Files
  27. {
  28. public static string App = Application.ExecutablePath;
  29. public static string Settings = Paths.App + "\\upd.ini";
  30. public static string Whatsnew = Paths.ProjectRoot + "\\Whatsnew.txt";
  31. public static string Plugins = Paths.ProjectRoot + @"Plugins.xml";
  32. public static string CloseAndStart = "";
  33. }
  34. public static class Settings
  35. {
  36. public static class FTP
  37. {
  38. public static string Address = "192.168.3.64";
  39. public static string Account = "Administrator";
  40. public static string Password = "yuzhengyang";
  41. }
  42. public static class Url
  43. {
  44. public static string WebService = "http://192.168.3.53:8088/noah/webservice/";
  45. }
  46. }
  47. }
  48. }