// Use this for initialization void Start() { generateButton = GameObject.Find("GenerateButton").GetComponent <Button>(); personPanel = (PersonPanelController)GameObject.Find("PersonPanel").GetComponent("PersonPanelController"); gen = new PersonsGenerator(); fileWorker = new FileWorker(); }
public DemoPerson() { var orig = PersonsGenerator.GenerateCollection().Last(); Id = orig.Id; DisplayName = orig.DisplayName; Birthday = orig.Birthday; Address = orig.Address; AttendingDoctor = orig.AttendingDoctor; DeputyDoctor = orig.DeputyDoctor; Email = orig.Email; Plans = orig.Plans; Files = orig.Files; Parameters = orig.Parameters; }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); var container = new WindsorContainer(); container.Register( Component.For(typeof(IQuery <>)).ImplementedBy(typeof(MongoQuery <>)), Component.For <ITranclator <FilterParams, IMongoQuery> >().ImplementedBy <PersonTraslator>() ); DependencyResolver.SetResolver(new WindsorDependencyResolver(container)); ControllerBuilder.Current.SetControllerFactory(new CastleControllerFactory(container)); // ModelBinders.Binders.DefaultBinder = new DIModelBinder(); PersonsGenerator.MakeTestData(); }
public MainWindowViewModel() { Items = new ObservableCollection <Person>(PersonsGenerator.GenerateCollection()); }