Quintiq file version 2.0
#parent: #root
Method ValuesWeeklyPatternOK () as Boolean id:Method_LibCal_dlgEvent_ValuesWeeklyPatternOK
{
  #keys: '[131094.0.1652536466]'
  Body:
  [*
    feedback := FeedbackObject::LocalFeedback();
    
    if( btnWeekly.Pressed()
        and not btnMonday   .Pressed()
        and not btnTuesday  .Pressed()
        and not btnWednesday.Pressed()
        and not btnThursday .Pressed()
        and not btnFriday   .Pressed()
        and not btnSaturday .Pressed()
        and not btnSunday   .Pressed() )
    {
      feedback.AddHard( Translations::Pattern_Weekly_NoDaySelected() );
    }
    
    return feedback.IsAllowed();
  *]
}
