Exemple #1
0
 private int GetLedCount()
 {
     int count = 0;
     LedCountInfo nci = new LedCountInfo();
     if (NLedGetDeviceInfo(ledCountInfoId, nci))
     {
         count = nci.LedsCount;
     }
     return count;
 }
Exemple #2
0
 private int GetLedCount()
 {
     int count = 0;
     LedCountInfo nci = new LedCountInfo();
     try{
         if (NLedGetDeviceInfo(ledCountInfoId, nci))
         {
             count = nci.LedsCount;
         }
     }catch(Exception){}
     return count;
 }
Exemple #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);
        }
Exemple #4
0
 private static extern bool NLedGetDeviceInfo(uint nID, LedCountInfo output);
Exemple #5
0
 private static bool NLedGetDeviceInfo(uint nID, LedCountInfo output){
     return false;
 }
Exemple #6
0
 private static bool NLedGetDeviceInfo(uint nID, LedCountInfo output)
 {
     return(false);
 }
Exemple #7
0
 private static extern bool NLedGetDeviceInfo(uint nID, LedCountInfo output);