Thank you for writing in. Because the two are not directly comparable values, you can compare the integers instead. Here is one way to do it:
public enum ActiveDay { Sunday=0, Monday=1, Tuesday=2, Wednesday=3, Thursday=4, Friday=5, Saturday=6 } protected override void OnBarUpdate() { ActiveDay activeDay = ActiveDay.Wednesday; //simulate customer selected enum if((int)activeDay == (int)DateTime.Now.DayOfWeek){ Print("Customer selected the current day!"); } }
Leave a comment: