public bool Kz(int controlid, int door) { if (Available()) { int count = DeviceConfigManager.Instance.config.SyrisKZCount; int time = DeviceConfigManager.Instance.config.SyrisKZTime; int interval = DeviceConfigManager.Instance.config.SyrisKZInterval; if (time < 1) { time = 0; } if (time > 60) { time = 60; } if (interval < 0) { interval = 0; } for (int i = 1; i < count; i++) { SY230NT.RemoteOpenDoorControl(iHANDLEID, controlid, door, time); System.Threading.Thread.Sleep(time * 1000 + interval); } SY230NT.RemoteOpenDoorControl(iHANDLEID, controlid, door, time); return(true); } return(false); }
public bool KZ(int door) { if (Available()) { if (door == 1) { return(SY230NT.RemoteOpenDoorControl(iHANDLEID, controlid, roadbrake1, 3) == 1); } else { return(SY230NT.RemoteOpenDoorControl(iHANDLEID, controlid, roadbrake2, 3) == 1); } } return(false); }