private void InitValue() { try { username = Encoding.Default.GetString(zk.GetData("/config/user", true, null)); password = Encoding.Default.GetString(zk.GetData("/config/passwd", true, null)); } catch (Exception) { } }
public bool ExistLock() { if (zk.Exists("/custom/lock", true) == null) { return(false); } else { zk.GetData("/custom/lock", true, null); return(true); } }