Ejemplo n.º 1
0
        public static void Main(params string[] args) {
            var mainWindow = new MainWindow();
            var map = new Map();
            var viewmodel = new Viewmodel();

            var mainboard = new Mainboard(
                viewmodel,
                new Throttle<string>(500),
                new GoogleTranslate(),
                new Synchronizer<string>(),
                map);

            mainWindow.SuchControl.Inject(viewmodel);
            map.Inject(viewmodel);

            var app = new Application {
                MainWindow = mainWindow
            };
            app.Run(mainWindow);
        }
Ejemplo n.º 2
0
 public void Inject(Viewmodel independent) {
     viewmodel = independent;
 }