我有5个按钮将调用此弹出功能发送电子邮件。我怎样才能找出哪个点击按钮称为功能?多个按钮调用相同的函数。可以找出哪个按钮称为函数?
public void popup(object sender, EventArgs e)
{
if (MessageBox.Show("You may not Bind, Change, Or Alter Insurance Coverage through e-mail. Confirmation of this e-mail by us initiates any changes to your Insurance. If you need any immediate service please contact our office at 1-800-875-5720.", "IMPORTANT!", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
{
string email = "mailto:[email protected]";
Process.Start(email);
}
}
}
System.Web.UI.WebControls.Button或System.Windows.Forms.Button – Snake3ite 2012-04-06 13:57:16
@ Snake3ite是WPF还是WinForms? – Yahia 2012-04-06 13:58:21
System.Web.UI.WebControls.Button用于Web应用程序; System.Windows.Forms.Button用于WinForms应用程序,System.Windows.Controls.Button用于WPF应用程序。 – Joe 2012-04-06 14:06:17