public void FillInitialPollingQ() { dbMgr = new DBManager(); pollingList = new ArrayList(); if (dbMgr.OpenConfig(configFileName)) { string[] pollingQ = dbMgr.GetPollingListData(); for (int i = 0; i < pollingQ.Length; i++) { string[] pollingCmd = pollingQ[i].Split(new char[] { ',' }); byte[] cmd = new byte[pollingCmd.Length]; for (int j = 0; j < pollingCmd.Length; j++) { cmd[j] = Convert.ToByte(pollingCmd[j]); } pollingList.Add(cmd); } } }