Quintiq file version 2.0
|
#parent: #root
|
Method SetEventData () id:Method_LibCal_dlgMultipleEvent_SetEventData
|
{
|
#keys: '[415136.0.645530896]'
|
Body:
|
[*
|
// Set the values of the controls that are related to the Event.
|
// Don't rely on databinding, because this is too late for the visualization logic;
|
// the values have not been taken over from the bound attributes yet when the logic needs them.
|
sEvent := dhEvent.Data();
|
|
edtName.Text( sEvent.Subject() );
|
//Type
|
//ddslType.Text( sEvent.Type() );
|
|
//capacity := LibCal_GlobalState.RealToString( sEvent.PartialCapacity() );
|
//edtCapacity.Text( capacity );
|
|
// Days only mode requires special treatment.
|
if( LibCal_Event::USE_ONLY_DAYS() )
|
{
|
this.SetDaysOnlyMode();
|
}
|
else
|
{
|
dhStartTimeOfDay.Data( sEvent.StartTimeOfDay() );
|
dhEndTimeOfDay .Data( sEvent.EndTimeOfDay() );
|
|
durStartTimeOfDay.Duration( sEvent.StartTimeOfDay() );
|
durEndTimeOfDay .Duration( sEvent.EndTimeOfDay() );
|
|
// ckbIsAllDay.Checked( sEvent.IsAllDay() );
|
}
|
*]
|
}
|