private void InitializeContent() { EventLogger.RecordEvent(EventLogger.EventType.Info, "0x0001", "Start intializing the FORM"); notifiDisplayer = new Notification(); notifiDisplayer.btnOK.Click += new RoutedEventHandler(CloseNotification_ButtonClick); uEye_Handler.InitializeCamera(); if (uEye_Handler.CameraResult.Status != "Initialized") { EventLogger.RecordEvent(EventLogger.EventType.Warning, uEye_Handler.CameraResult.ErrorCode, uEye_Handler.CameraResult.ErrorDescription); } else { EventLogger.RecordEvent(EventLogger.EventType.Info, "0x0002", "Camera status is: " + uEye_Handler.CameraResult.Status); } mainPage = new Assets.MainPage(); manualPage = new Assets.ManualPage(); settingsPage = new Assets.SettingsPage(); historyPage = new Assets.HistoryPage(); LoginDialog = new Assets.LoginDialogBox(); WindowViewModel = new MainWindowViewModel(this); mainPage.tbDate.Text = DateTime.Now.ToShortDateString(); mainPage.tbCurrentTime.Text = DateTime.Now.ToShortTimeString(); ReferenceHandler.ConnectRoutineADS(TwinCat3Client_AdsNotificationEx); WindowViewModel.DisplayPage(mainPage); WindowViewModel.InitialLanguage(); }