我目前正在处理单击计数和文本框值。Button1
目的是根据texbox7
具有的值执行特定功能。当我尝试触发按钮单击事件时,我没有得到任何结果。有人可以建议/帮助吗?
代码
private List<string> messages = new List<string>() { "Option1", "Option2", "Option3", "Option4" };
private void button1_Click(object sender, EventArgs e)
{
if (textBox7.ToString() == "Option1")
{
int min = max;
int n = 0;
string s = "";
sw.Start();
}
else if (textBox7.ToString() == "Option2")
{
}
else if (textBox7.ToString() == "Option3")
{
}
else if (textBox7.ToString() == "Option4")
{
}
else if (textBox7.ToString() == "")
{
MessageBox.Show("Please input information");
}
}