public async Task MvvmTest() { var file = new FileInfo("company\\EmployeesView.json"); var provider = new ViewProvider(); var view = await provider.GetView(file); var vm = new TestCompanyVm(); var _ = new SceneUpdater(vm, 50); Run(vm, view); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new TestBrowser()); // new StaScheduler("GDI Test"); var _testLauncher = GetGdiLauncher(); var view = GetTestCompanyTabsView(_testLauncher); view.Width = 1024; view.Height = 768; //_testLauncher.RenderKit. //_testLauncher = GetOpenGLLauncher(); ICompanyViewModel vm = new TestCompanyVm(); vm.SelectedEmployee = vm.Employees.FirstOrDefault(); view.DataContext = vm; //view.SetDataContext(vm); //_testLauncher.r //var view = new TestTabControl(_testLauncher.BootStrapper.VisualBootstrapper); //view.SetDataContext(vm); _testLauncher.Run(vm, view); //_testLauncher.MvvmTest().Wait(); // ZoomTest(); }