标签:ring 事件 object blog button .text class ase private
private void btn_Click(object sender, EventArgs e) { Button btn = sender as Button; switch (btn.Text.ToString()) { case "确定": MessageBox.Show("我是确定按钮"); break; case "取消": MessageBox.Show("我是取消按钮"); break; } }
标签:ring 事件 object blog button .text class ase private
原文地址:http://www.cnblogs.com/772933011qq/p/5993815.html