Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. private void FindItAndCheck()
  2. {
  3. ToolStripMenuItem item =
  4. this.MainMenuStrip.Items.Find("exit", true).FirstOrDefault()
  5. as ToolStripMenuItem;
  6.  
  7. if (item == null) throw new ApplicationException("...");
  8. else
  9. {
  10. item.Checked = true;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement