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); }
public void Inject(Viewmodel independent) { viewmodel = independent; }