资源简介
4款美仑美幻的LOADING,总有一款适合你,并且拥有个性化设置,效果一目了然
代码片段和文件信息
//#####################################################################################
//★★★★★★★ http://www.cnpopsoft.com [华普软件] ★★★★★★★
//★★★★★★★ 华普软件-VB、C#专业论文与源码荟萃! ★★★★★★★
//#####################################################################################
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Text;
using System.Windows.Forms;
namespace CNPOPSOFT.Controls
{
public partial class LoadingCircle : Control
{
#region 常数
private const double NumberOfDegreesInCircle = 360;
private const double NumberOfDegreesInHalfCircle = NumberOfDegreesInCircle / 2;
private const int DefaultInnerCircleRadius = 8;
private const int DefaultOuterCircleRadius = 10;
private const int DefaultNumberOfSpoke = 10;
private const int DefaultSpokeThickness = 4;
private readonly Color DefaultColor = Color.DarkGray;
private const int MacOSXInnerCircleRadius = 5;
private const int MacOSXOuterCircleRadius = 11;
private const int MacOSXNumberOfSpoke = 12;
private const int MacOSXSpokeThickness = 2;
private const int FireFoxInnerCircleRadius = 6;
private const int FireFoxOuterCircleRadius = 7;
private const int FireFoxNumberOfSpoke = 9;
private const int FireFoxSpokeThickness = 4;
private const int IE7InnerCircleRadius = 8;
private const int IE7OuterCircleRadius = 9;
private const int IE7NumberOfSpoke = 24;
private const int IE7SpokeThickness = 4;
#endregion
#region 枚举
public enum stylePresets
{
MacOSX
Firefox
IE7
Custom
}
#endregion
#region 局部变量
private Timer m_Timer;
private bool m_IsTimerActive;
private int m_NumberOfSpoke;
private int m_SpokeThickness;
private int m_ProgressValue;
private int m_OuterCircleRadius;
private int m_InnerCircleRadius;
private PointF m_CenterPoint;
private Color m_Color;
private Color[] m_Colors;
private double[] m_Angles;
private stylePresets m_stylePreset;
#endregion
#region 属性
///
/// 获取和设置控件高亮色
///
/// 高亮色
[TypeConverter(“System.Drawing.ColorConverter“)
Category(“LoadingCircle“)
Description(“获取和设置控件高亮色“)]
public Color Color
{
get
{
return m_Color;
}
set
{
m_Color = value;
GenerateColorsPallet();
Invalidate();
}
}
///
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 101888 2008-05-08 14:22 LoadingCircle.suo
文件 2312 2008-05-08 13:35 LoadingCircle\CNPOPSOFT.Controls.csproj
文件 168 2008-05-08 13:34 LoadingCircle\CNPOPSOFT.Controls.csproj.user
文件 15476 2008-05-08 13:31 LoadingCircle\LoadingCircle.cs
文件 1042 2008-05-08 13:31 LoadingCircle\LoadingCircle.Designer.cs
文件 1426 2008-05-08 13:39 LoadingCircle\Properties\AssemblyInfo.cs
文件 2705 2008-05-08 14:21 LoadingCircleTest\CNPOPSOFT.Controls.Test.csproj
文件 608 2008-05-08 13:34 LoadingCircleTest\CNPOPSOFT.Controls.Test.csproj.user
文件 4483 2008-05-08 14:13 LoadingCircleTest\frmMain.cs
文件 26854 2008-05-08 14:13 LoadingCircleTest\frmMain.Designer.cs
文件 5987 2008-05-08 14:13 LoadingCircleTest\frmMain.resx
文件 845 2008-05-08 13:32 LoadingCircleTest\Program.cs
文件 1282 2008-05-08 13:40 LoadingCircleTest\Properties\AssemblyInfo.cs
文件 1455 2008-05-08 14:21 LoadingCircle.sln
..AD... 0 2008-05-08 14:20 LoadingCircle\Properties
..AD... 0 2008-05-08 14:20 LoadingCircleTest\Properties
..AD... 0 2008-05-08 14:22 LoadingCircle
..AD... 0 2008-05-08 14:22 LoadingCircleTest
----------- --------- ---------- ----- ----
166531 18
评论
共有 条评论