/* public void SaveButton(string buttonId , string buttonText , byte [] cmd) * { * string[] buttonCMD = new string[3]; * buttonCMD[0] = buttonId; * buttonCMD[1] = buttonText; * if(cmd.Length > 0) * { * * string data = ""; * data = cmd[0].ToString(); * for (int i = 1; i < cmd.Length; i++) * { * data += "," + cmd[i].ToString(); * } * buttonCMD[2] = data; * } * if (buttonCMD.Length > 2) * { * dbMgr.UpdateShortcutButton(buttonCMD); * dbMgr.SaveConfig(); * } * }*/ public void SavePollingQ() { string[] pollingQ = new string[pollingList.Count]; for (int i = 0; i < pollingList.Count; i++) { byte[] pollingCmd = (byte[])pollingList[i]; if (pollingCmd.Length > 0) { pollingQ[i] = pollingCmd[0].ToString(); for (int j = 1; j < pollingCmd.Length; j++) { pollingQ[i] += "," + pollingCmd[j].ToString(); } } } if (pollingQ.Length > 0) { dbMgr.UpdatePollingList(pollingQ); dbMgr.SaveConfig(); } }