GetUIResources.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.ComponentLibrary
  6. {
  7. /// <summary>
  8. /// 获取UI资源
  9. /// </summary>
  10. public class GetUIResources : LYFZ.ComponentLibrary.UIBlueThemeResources
  11. {
  12. public static System.Drawing.Bitmap GetTitleBgImage()
  13. {
  14. string titlebgimg = LYFZ.WinAPI.CustomPublicMethod.GetFullDirectoryPath(LYFZ.WinAPI.CustomPublicMethod.BasePath) + "Resources\\SThemeImage\\titleTop_bg.png";
  15. if (System.IO.File.Exists(titlebgimg))
  16. {
  17. return LYFZ.WinAPI.CustomPublicMethod.GetPathToBitmap(titlebgimg);
  18. }
  19. else
  20. {
  21. return LYFZ.ComponentLibrary.GetUIResources.frmTitleBG;
  22. }
  23. }
  24. public static System.Drawing.Bitmap GetBottomBgImage()
  25. {
  26. string titlebgimg = LYFZ.WinAPI.CustomPublicMethod.GetFullDirectoryPath(LYFZ.WinAPI.CustomPublicMethod.BasePath) + "Resources\\SThemeImage\\titleEnd_bg.png";
  27. if (System.IO.File.Exists(titlebgimg))
  28. {
  29. return LYFZ.WinAPI.CustomPublicMethod.GetPathToBitmap(titlebgimg);
  30. }
  31. else
  32. {
  33. return LYFZ.ComponentLibrary.GetUIResources.frmBottomBG;
  34. }
  35. }
  36. }
  37. }