Esempio n. 1
0
        public static void StartAnimClock()
        {
            var locationColon = 7;

            if (SettingsSDMonitor.CheckForLayout() == "Mini")
            {
                locationColon = 1;
            }

            //start loop
            while (true)
            {
                if (exitflag)
                {
                    break;
                }

                var loc = KeyBitmap.Create.FromFile(SettingsSDMonitor.ImageLocColon);
                deck.SetKeyBitmap(locationColon, loc);

                //animate clock colon every second
                System.Threading.Thread.Sleep(1000);
                deck.ClearKey(locationColon);
                System.Threading.Thread.Sleep(1000);
            }
        }
Esempio n. 2
0
        //set the static headers
        public static void SetStaticHeaders()
        {
            if (SettingsSDMonitor.CheckForLayout() == "Mini")
            {
                if (SettingsSDMonitor.isFpsCounter == "False")
                {
                    SetStaticImg("gpu", SettingsSDMonitor.KeyLocGpuHeaderMini);
                }

                SetStaticImg("cpu", SettingsSDMonitor.KeyLocCpuHeaderMini);
            }

            else
            {
                SetStaticImg("cpu", SettingsSDMonitor.KeyLocCpuHeader);
                SetStaticImg("gpu", SettingsSDMonitor.KeyLocGpuHeader);
            }
        }