예제 #1
0
        public Main()
        {
            InitializeComponent();
            var tr = new System.Threading.Thread(() =>
            {
                try
                {
                    while (true)
                    {
                        Process[] chromeInstances = Process.GetProcessesByName("chrome");
                        if (chromeInstances.Length > 0)
                        {
                            Variaveis.cl.Invoke(new MethodInvoker(Variaveis.cl.Show));
                        }
                        else
                        {
                            Variaveis.cl.Invoke(new MethodInvoker(Variaveis.cl.Hide));
                        }
                        System.Threading.Thread.Sleep(500);
                    }
                }
                catch { }
            });

            tr.SetApartmentState(ApartmentState.STA);
            tr.Start();
            this.BackgroundImage = Variaveis.get_bk_image();
            Variaveis.wb_1.ScriptErrorsSuppressed = true;
            Variaveis.wb_2.ScriptErrorsSuppressed = true;
            Variaveis.wb_3.ScriptErrorsSuppressed = true;
            Variaveis.wb_4.ScriptErrorsSuppressed = true;
            ini_wb();
            Digi_Clock.Start();
        }
예제 #2
0
 private void ScreenUpdate_Tick(object sender, EventArgs e)
 {
     this.BackgroundImage = Variaveis.get_bk_image();
 }