1 Star 0 Fork 25

eacpay/QueueSystem

forked from ewin66/QueueSystem 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Form1.cs 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
Ace 提交于 2018-09-04 18:18 +08:00 . update
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security.Permissions;
namespace QueueTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void pd1_Click(object sender, EventArgs e)
{
}
private void pictureBox1_Click(object sender, EventArgs e)
{
MessageBox.Show("123");
}
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
}
private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
//pictureBox1.down += new Action(pictureBox1_down);
//pictureBox1.up += new Action(pictureBox1_up);
pictureBox1.down +=new Action<object>(pictureBox1_down);
pictureBox1.up += new Action<object>(pictureBox1_up);
}
void pictureBox1_up(object sender)
{
PictureBox pb = sender as PictureBox;
pb.Image = Properties.Resources.数字按钮;
}
void pictureBox1_down(object sender)
{
PictureBox pb = sender as PictureBox;
pb.Image = Properties.Resources.数字按钮2;
}
private void pd1_MouseDown(object sender, MouseEventArgs e)
{
PictureBox pb = sender as PictureBox;
pb.Image = Properties.Resources.数字按钮2;
}
private void pd1_MouseUp(object sender, MouseEventArgs e)
{
PictureBox pb = sender as PictureBox;
pb.Image = Properties.Resources.数字按钮;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eacpay/QueueSystem.git
git@gitee.com:eacpay/QueueSystem.git
eacpay
QueueSystem
QueueSystem
master

搜索帮助