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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Customize.Controls
{
public static class LoadResource
{
private static System.Drawing.Bitmap[] loadImages;
static LoadResource()
{
loadImages = new System.Drawing.Bitmap[1];
// loadImages[0] = global::Hwf.Client.Properties.Resources.loader;
}
public static System.Drawing.Bitmap GetRandomLoadImage()
{
Random random = new Random(DateTime.Now.Millisecond);
int n = random.Next(0, loadImages.Length);
var img = loadImages[n];
return img;
}
}
}