Ejemplo n.º 1
0
        public MainWindow()
        {
            // Setup
            InitializeComponent();

            IoCRegistration.Initialise();
            cVm = IoCRegistration.Resolve <ICommunityViewModel>();

            ShowDefaultwWindows();

            cmdProc = cVm.DwellerCommandProcessor;

            DataContext = cVm;

            // Connect the buttons
            cmdProc.NewDwellerCreated  += DwellerCreated;
            cmdProc.NewBuildingCreated += BuildingCreated;

            // Update our bounds
            Grid_SizeChanged(null, null);

            // add some dwellers and stuff
            AddInitialHome();
            AddInitialCafe();
            AddInitialWorkplace();
            AddInitialDwellers();
        }