界面展示:
用到的控件有:Button(按钮)Timer控件(它的设置代码里面有)点击按钮进行刷新
源代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HClock
{
public partial class Clock : Form
{
private Graphics m_graphic;
private Timer m_timer;
private float m_width;
private float m_height;
private Color m_bgcolor;
private Color m_backcolor;
private Color m_scalecolor;
private Color m_seccolor;
private Color m_mincolor;
private Color m_hourcolor;
private float m_radius;
public Clock()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
th