111,125
社区成员
发帖
与我相关
我的任务
分享
public class Form6
{
private bool m_bCodeMod;
private void TextBox1_TextChanged(object sender, EventArgs e)
{
// 开发者修改
if (this.m_bCodeMod)
{
Interaction.MsgBox("Code Mod: " + this.TextBox1.Text);
}
else // 用户修改
{
Interaction.MsgBox("User Mod" + this.TextBox1.Text);
}
}
private void Button1_Click(object sender, EventArgs e)
{
this.m_bCodeMod = true;
this.TextBox1.Text = "Code mod";
this.m_bCodeMod = false;
}
}
