You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
696 B

1 month ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Customize.Controls
  6. {
  7. public static class LoadResource
  8. {
  9. private static System.Drawing.Bitmap[] loadImages;
  10. static LoadResource()
  11. {
  12. loadImages = new System.Drawing.Bitmap[1];
  13. // loadImages[0] = global::Hwf.Client.Properties.Resources.loader;
  14. }
  15. public static System.Drawing.Bitmap GetRandomLoadImage()
  16. {
  17. Random random = new Random(DateTime.Now.Millisecond);
  18. int n = random.Next(0, loadImages.Length);
  19. var img = loadImages[n];
  20. return img;
  21. }
  22. }
  23. }