1 回答
TA贡献2003条经验 获得超2个赞
List<BunifuFlatButton> btnss = new List<BunifuFlatButton>();
private bool pressed = false;
private void NewButtonOnClick(object sender, EventArgs eventArgs)
{
BunifuFlatButton btn = (BunifuFlatButton)sender;
if (pressed)
{
btnss[0].Normalcolor = Color.FromArgb(37, 37, 37);
btn.Normalcolor = Color.FromArgb(37, 66, 80);
pressed = false;
btnss.Clear();
btnss.Add(btn);
}
else
{
if (btnss.Count != 0)
{
btnss[0].Normalcolor = Color.FromArgb(80, 80, 80);
}
btn.Normalcolor = Color.FromArgb(37, 66, 80);
btnss.Clear();
btnss.Add(btn);
pressed = true;
}
}
- 1 回答
- 0 关注
- 209 浏览
添加回答
举报