/// <summary> /// When right-clicking reminder(s), this method will hide the skip to next date option if one of the reminder(s) does not have a next date. /// </summary> private void HideOrShowSkipForwardMenuItem(List <Reminder> reminders) { //Check if there is even a single reminder that can't be repeated from the selected reminders. We only want to show this option if every //selected reminder is repeatable bool hideMenuItem = BLReminder.ContainsRepeatableReminder(reminders); //The option ToolStripItem skipToNextDateItem = ReminderMenuStrip.Items.Find("skipToNextDateToolStripMenuItem", false)[0]; //determine if we are going to hide the "Skip to next date" option based on the boolean hideMenuItem skipToNextDateItem.Visible = hideMenuItem; BLIO.Log("Showing skip to next date option from right click menu: " + hideMenuItem); }