public void Execute(object parameter)
        {
            if (!entry.Number.StartsWith("2") || entry.Number.Equals("203"))
            {
                MessageBox.Show("You can't add " + entry.Department + " " + entry.Number + " to Schedule as you do not have the prerequisites.");
                return;
            }

            CartSelections.RemoveFromCart(entry);
            entry.UpdateRemoveFromSchedule();
            ScheduleSelections.AddToSchedule(entry);
            Messages.AddUndoMessage("Moved " + entry.Department + " " + entry.Number + " in " + entry.Semester + " to Schedule", () => reverseEnroll(entry));
        }
 public void reverseEnroll(CartAndScheduleEntry entry)
 {
     entry.UpdateRemoveFromCart();
     CartSelections.AddToCart(entry);
     ScheduleSelections.RemoveFromSchedule(entry);
 }
 public void Execute(object parameter)
 {
     ScheduleSelections.RemoveFromSchedule(entry);
     Messages.AddUndoMessage("Removed " + entry.Department + " " + entry.Number + " in " + entry.Semester + " from Schedule", () => ScheduleSelections.AddToSchedule(entry));
 }