Beispiel #1
0
        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);
        }
Beispiel #2
0
 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);
 }