public static ContextMenu CreateMenu(FormBrowser form) { ContextMenu menu = new ContextMenu(); menu.MenuItems.Add(TitleReloadBrowser, (sender, args) => form.ReloadToTweetDeck()); menu.MenuItems.Add(TitleMuteNotifications, (sender, args) => ToggleMuteNotifications()); menu.MenuItems.Add("-"); menu.MenuItems.Add(TitleSettings, (sender, args) => form.OpenSettings()); menu.MenuItems.Add(TitlePlugins, (sender, args) => form.OpenPlugins()); menu.MenuItems.Add(TitleAboutProgram, (sender, args) => form.OpenAbout()); menu.Popup += (sender, args) => { menu.MenuItems[1].Checked = Program.UserConfig.MuteNotifications; }; return(menu); }