示例#1
0
 private void grassToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     (sender as ToolStripMenuItem).Checked = !(sender as ToolStripMenuItem).Checked;
     m_GameEngine.ToggleGrass((sender as ToolStripMenuItem).Checked);
 }