示例#1
0
        // bool
        public bool SetValue(int row, int col, bool result)
        {
            if (row >= GetRowCount() || col >= GetColcount() || row < 0 || col < 0)
            {
                return(false);
            }

            VarList rowItem = rowSet[row];

            if (rowItem == null)
            {
                return(false);
            }

            if (col < rowItem.GetCount())
            {
                rowItem.SetBool(col, result);
            }
            else
            {
                rowItem.AddBool(result);
            }

            return(true);
        }