public AmivoiceWatcher() { try { Globals.log.Debug("/"); Globals.log.Debug("/"); Globals.log.Debug("/"); Globals.log.Debug("/"); Globals.log.Debug("Welcome to Amivoice Watcher v" + ComputerInfo.WatcherVersion); #if DEBUG Console.WriteLine("Mode=Debug"); //DebugHelper(); #endif FormWaiting.ShowSplashScreen(); Configuration.Initialize(); InitializeCefsharp(); InitializeFormCefsharpDummy(); //CefsharpOffscreen.MyInitialize(); //MainForm mainForm = new MainForm(); //this takes ages //FormWaiting.CloseForm(); //Application.Run(mainForm); Globals.CreateAllDirectoryAndFiles(); InitializeTrayMenu(); if (Configuration.CheckEnableAgentActivity()) { threadUserActivity = new Thread(new ThreadStart(UserActivityThread.ThreadMain)); threadUserActivity.Start(); } threadComputerInfo = new Thread(new ThreadStart(ComputerInfo.ThreadMain)); threadComputerInfo.Start(); // Will be start by FormNotificationPanel threadRabbitMQ = new Thread(new ThreadStart(RabbitMQWrapper.ThreadMain)); threadRabbitMQ.Start(); SendComputerLogStartup_by_myFormCefsharpDummy(); NotificationPanel._init(); #if DEBUG //Globals.Notifications.PopupWelcomeMessage(); #endif //DONT DELETE //StartCaptureScreenRecord(); } catch (Exception e) { Globals.log.Error(e.ToString()); } }
private void timer1_Tick(object sender, EventArgs ev) { try { Globals.log.Debug("FormWaitings:> timer1_tick will close waiting form."); FormWaiting.CloseDelegate(); AmivoiceWatcher.NotificationPanel.ShowPanel(); } catch (Exception e) { Globals.log.Debug(e.ToString()); } }
static public void ShowSplashScreen() { // Make sure it is only launched once. if (splashForm != null) { return; } else { splashForm = new FormWaiting(); //PictureBox pictureBox1 = new PictureBox(); //pictureBox1.Location = new Point(0,0); //splashForm.Controls.Add(pictureBox1); splashForm.InitializeComponent(); splashForm.Show(); } //Thread thread = new Thread(new ThreadStart(FormWaiting.ShowForm)); //thread.IsBackground = true; //thread.SetApartmentState(ApartmentState.STA); //thread.Start(); }