Пример #1
0
 private int GetLedCount()
 {
     int count = 0;
     LedCountInfo nci = new LedCountInfo();
     if (NLedGetDeviceInfo(ledCountInfoId, nci))
     {
         count = nci.LedsCount;
     }
     return count;
 }
Пример #2
0
Файл: Led.cs Проект: flts/fleux
 private int GetLedCount()
 {
     int count = 0;
     LedCountInfo nci = new LedCountInfo();
     try{
         if (NLedGetDeviceInfo(ledCountInfoId, nci))
         {
             count = nci.LedsCount;
         }
     }catch(Exception){}
     return count;
 }
Пример #3
0
        private int GetLedCount()
        {
            int          count = 0;
            LedCountInfo nci   = new LedCountInfo();

            try{
                if (NLedGetDeviceInfo(ledCountInfoId, nci))
                {
                    count = nci.LedsCount;
                }
            }catch (Exception e) {}
            return(count);
        }
Пример #4
0
 private static extern bool NLedGetDeviceInfo(uint nID, LedCountInfo output);
Пример #5
0
Файл: Led.cs Проект: flts/fleux
 private static bool NLedGetDeviceInfo(uint nID, LedCountInfo output){
     return false;
 }
Пример #6
0
 private static bool NLedGetDeviceInfo(uint nID, LedCountInfo output)
 {
     return(false);
 }
Пример #7
0
 private static extern bool NLedGetDeviceInfo(uint nID, LedCountInfo output);