예제 #1
0
    // 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();
    }
예제 #2
0
        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;
        }
예제 #3
0
        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();
        }
예제 #4
0
 public MainWindowViewModel()
 {
     Items = new ObservableCollection <Person>(PersonsGenerator.GenerateCollection());
 }