TODO find a way to populate fields of RiderCardDrawer vie (binding ?)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user