Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void FindItAndCheck()
- {
- ToolStripMenuItem item =
- this.MainMenuStrip.Items.Find("exit", true).FirstOrDefault()
- as ToolStripMenuItem;
- if (item == null) throw new ApplicationException("...");
- else
- {
- item.Checked = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement