using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace 指针实验
{
public partial class Form1 : Form
{
Graphics g;
int x, y, x1, y1;//计算表盘时用
int xs, ys, xm, ym, xh, yh;//分别代表秒针分针时针位置
int xsl, ysl, xml, yml, xhl, yhl;//记录上一状态
int r = 40; // 半径
Point p;
//= new Point(100, 100);// 圆心位置
Pen penSecond, penSecondLast, penMinute, penMinuteLast, penHour, penHourLast;
Color colorBackground = Color.White;
bool click;
int mouse_x;
int mouse_y;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
g = this.CreateGraphics();
this.TopMost = true;
label1.Text = DateTime.Now.ToString();
p = new Point(this.Width / 2, this.Height / 2 + 2);
int second = DateTime.Now.Sec