示例#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
文件: Led.cs 项目: hksonngan/fleux
        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
文件: Led.cs 项目: hksonngan/fleux
 private static bool NLedGetDeviceInfo(uint nID, LedCountInfo output)
 {
     return(false);
 }
示例#7
0
文件: Led.cs 项目: hksonngan/fleux
 private static extern bool NLedGetDeviceInfo(uint nID, LedCountInfo output);