Beispiel #1
0
 public static RspRsiInfo LoadConfig(BaseDevice device, int kmfRsi, int mnp)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         return(InteractTwiKfdtool.LoadConfig(device, kmfRsi, mnp));
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         return(InteractDliIp.LoadConfig(device, kmfRsi, mnp));
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support LoadConfig", device.DeviceType.ToString()));
     }
 }
Beispiel #2
0
 public static List <RspKeyInfo> ViewKeyInfo(BaseDevice device)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         return(InteractTwiKfdtool.ViewKeyInfo(device));
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         return(InteractDliIp.ViewKeyInfo(device));
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support ViewKeyInfo", device.DeviceType.ToString()));
     }
 }
Beispiel #3
0
 public static void EraseKey(BaseDevice device, List <CmdKeyItem> keys)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         InteractTwiKfdtool.EraseKey(device, keys);
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         InteractDliIp.EraseKey(device, keys);
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support EraseKey", device.DeviceType.ToString()));
     }
 }
Beispiel #4
0
 public static void EraseAllKeys(BaseDevice device)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         InteractTwiKfdtool.EraseAllKeys(device);
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         InteractDliIp.EraseAllKeys(device);
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support EraseAllKeys", device.DeviceType.ToString()));
     }
 }
Beispiel #5
0
 public static void CheckTargetMrConnection(BaseDevice device)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         InteractTwiKfdtool.CheckTargetMrConnection(device);
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         InteractDliIp.CheckTargetMrConnection(device);
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support CheckTargetMrConnection", device.DeviceType.ToString()));
     }
 }