如何在Visual Studio中只勾画一个切换
问题描述:
这是我的一段代码我想在我的LoadItemTrackingGrid()中切换一个大纲,请给我一个所有大纲的快捷方式。如何在Visual Studio中只勾画一个切换
protected void LoadItemTrackingGrid(object sender, EventArgs e)
{
LoadItemTrackingGrid();
}
private bool IsEditModeProductGroup()
{
return (!string.IsNullOrEmpty(lblParentProductId.Text));
}
protected void lnkProductGroupAdd_OnClick(object sender, EventArgs e)
{
if (ddlProductGroup.SelectedIndex == 0)
txtProductGroupName.Text = string.Empty;
else
txtProductGroupName.Text = ddlProductGroup.SelectedItem.Text;
popupProductGroup.Show();
txtProductGroupName.Focus();
}
protected void btnSaveProductGroup_onClick(object sender, EventArgs e)
{
if (!IsValidProductGroup())
{
popupProductGroup.Show();
return;
}
int? ParentProductId = SaveProductGroup();
LoadProductGroup();
ddlProductGroup.SelectedValue = ParentProductId.ToString();
ddlProductGroup_OnSelectedIndexChanged(null, null);
}
答
大纲只有一个拨动=>按Ctrl + M + M
亲爱upvoter,只是因为它的代码可能并不意味着这是一个很好的问题。特别是当它是关于工具中的键盘快捷方式时 – MickyD