我在ToolStripMenu
item click 上调用以下内容:
protected void windowNewMenu_Click(object sender, EventArgs e)
{
if (_selectedThings.Contains(((ToolStripMenuItem)sender).Tag))
{
selectedItemsPropertyGrid.SelectedObject = ((ToolStripMenuItem)sender).Tag;
selectedItemsComboBox.SelectedText = (((ToolStripMenuItem)sender).Tag.GetType()).ToString();
}
}
但是,应该更改的第二行似乎不会对ComboBox
. 有什么建议么?