vs 求教 string 隐式无法转换成bool
private void 编辑名片ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (listView1.SelectedItems.Count > 0)
{
Form3 ce = new Form3();
ce.Isedit = true;
ce.Id = listView1.SelectedItems[0].Tag.ToString(); //错误 1 无法将类型“string”隐式转换为“bool”
ce.Show();
}
else
{
MessageBox.Show("请选择要编辑的名片!");
}
}