예제 #1
0
 public static void DeInitLogitechMonitor()
 {
     if (LogitechSDK.LogiLcdIsConnected(LogitechSDK.LOGI_LCD_TYPE_MONO))
     {
         LogitechSDK.LogiLcdShutdown();
     }
 }
예제 #2
0
        public static bool InitLogitechMonitor()
        {
            Boolean res = false;

            //-- если монитор вообще подсоединен, то ..
            if (TryInitLogitechMonitor())
            {
                //-- пытаемся его инициализировать
                if (LogitechSDK.LogiLcdIsConnected(LogitechSDK.LOGI_LCD_TYPE_MONO))
                {
                    //LogitechSDK.LogiLcdMonoSetBackground(BitmapToByteRgbNaive(Properties.Resources.russ));
                    LogitechSDK.LogiLcdMonoSetBackground(BitmapToByteRgbNaive(Properties.Resources.ETR));
//          LogitechSDK.LogiLcdMonoSetText(0, "Elite Dangerous");
//          LogitechSDK.LogiLcdMonoSetText(3, "Приветствую Вас, пилот!");
                    LogitechSDK.LogiLcdUpdate(LogitechSDK.LOGI_LCD_TYPE_MONO);
                }
                res = true;
            }
            return(res);
        }
예제 #3
0
 public static bool TryInitLogitechMonitor()
 {
     return(LogitechSDK.LogiLcdInit("ELITE", LogitechSDK.LOGI_LCD_TYPE_MONO | LogitechSDK.LOGI_LCD_TYPE_COLOR));
 }