TODO find a way to populate fields of RiderCardDrawer vie (binding ?)

This commit is contained in:
2025-12-15 14:02:05 +01:00
parent da6a89c848
commit ca48bf8bc9
9 changed files with 100 additions and 31 deletions
+5 -5
View File
@@ -1,15 +1,15 @@
package command;
import model.Constants;
import com.adobe.cairngorm.commands.ICommand;
import com.adobe.cairngorm.control.CairngormEvent;
import control.RiderSelectEvent;
import model.AppModelLocator;
import t9.util.ColorTraces.*;
class RiderSelectCommand implements ICommand {
private var model = AppModelLocator.getInstance();
public function execute(e:CairngormEvent):Void {
trace(e.data);
public function execute(ce:CairngormEvent):Void {
// set the selectedRider property in the model locator with the details from the ListView item selected by user
model.selectedRider = cast(ce, RiderSelectEvent).selectedRider;
}
}
}