示例#1
0
文件: Menus.cs 项目: djaus2/SurfPad
        public static bool CheckcIfComportConnectDeviceNoKeySettingExists()
        {
            if (!ElementConfigInt.ContainsKey(cComportConnectDeviceNoKey))
            {
                System.Diagnostics.Debug.WriteLine("Optional ElementConfigInt key iComportConnectDeviceNoKey  not found.");
                return(false);
            }
            if (ElementConfigInt[cComportConnectDeviceNoKey] < 0)
            {
                System.Diagnostics.Debug.WriteLine("Optional ElementConfigInt key iComportConnectDeviceNoKey  invalid value <0.");
                return(false);
            }

            return(true);
        }
示例#2
0
文件: Menus.cs 项目: djaus2/SurfPad
 public static bool CheckKeys()
 {
     if (!ElementConfigInt.ContainsKey(cSensorsRowIndexKey))
     {
         System.Diagnostics.Debug.WriteLine("ElementConfigInt key iSensorsRowIndex Key not found.");
         return(false);
     }
     if (!ElementConfigInt.ContainsKey(cCommandActionsColIndexKey))
     {
         System.Diagnostics.Debug.WriteLine("ElementConfigInt iCommandActionsColIndex Key not found.");
         return(false);
     }
     if (!ElementConfigInt.ContainsKey(cValuesRowIndexKey))
     {
         System.Diagnostics.Debug.WriteLine("ElementConfigInt iValuesRowIndex Key  not found.");
         return(false);
     }
     return(true);
 }