<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
			   creationComplete="init();">
	<fx:Script>
		<![CDATA[
			import model.EmployeesModelLocator;
			import event.LoadEmployeesEvent;
			
			private function init():void {
				var loadEmployeesEvent:LoadEmployeesEvent = new LoadEmployeesEvent();
				loadEmployeesEvent.dispatch();
			}
		]]>
	</fx:Script>
	<fx:Declarations>
		<rds:Services xmlns:rds="business.*"/>
		<router:FSController xmlns:router="controller.*"/>
	</fx:Declarations>
	<mx:DataGrid x="32" y="25" width="400" dataProvider="{EmployeesModelLocator.getInstance().employeesList}">
		<mx:columns>
			<mx:DataGridColumn headerText="Name" dataField="name"/>
			<mx:DataGridColumn headerText="Age" dataField="age"/>
			<mx:DataGridColumn headerText="Email" dataField="email"/>
		</mx:columns>
	</mx:DataGrid>
</s:Application>
