protected override void CreateControls() { _winVM = (VMWindow)_view; if (ListStockRecords.Count == 0) { _winVM.VMControlDatagrid.Visibility = Visibility.Hidden; } else { _winVM.VMControlDatagrid.Visibility = Visibility.Visible; } BindGrid(); }
private static void SetupAndRunApplication(Opt opt) { Program.CheckIfAlreadyRunning(Opt.Instance.h); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (!VMWindow.CheckAndroidFilesIntegrity()) { Logger.Error("Android File Integrity check failed"); Environment.Exit(-2); } TimelineStatsSender.HandleEngineBootEvent(EngineStatsEvent.android_file_integrity_passed.ToString()); InputMapper.RegisterGuestBootLogsHandler(); AndroidService.StartAsync(); HTTPHandler.StartServer(); Program.InitAudioLogger(Logger.GetHdLoggerCallback()); VMWindow vmWindow = new VMWindow(opt.h, opt.w); Application.Run(); }