Exemplo n.º 1
0
        public ArrayList GetTSButtonInvent(string DeptId, string StoreID)
        {
            DataTable table = getGui.GetAllTSButtonInvent(StoreID, DeptId);
            ArrayList re    = new ArrayList();

            for (int i = 0; i < table.Rows.Count; i++)
            {
                TSButton tsButton = new TSButton("01", Convert.ToInt32(table.Rows[i]["Index"]),
                                                 table.Rows[i]["Caption"].ToString(), table.Rows[i]["Picture"].ToString(), table.Rows[i]["Option1"].ToString(),
                                                 Convert.ToInt32(table.Rows[i]["BackColor"]), Convert.ToInt32(table.Rows[i]["ForeColor"]), Convert.ToBoolean(table.Rows[i]["Visible"]),
                                                 table.Rows[i]["Ident"].ToString());
                re.Add(tsButton);
            }
            return(re);
        }