Exemplo n.º 1
0
        public bool CanAddItem(string item)
        {
            // cause i'm stuff
            if (colorInd == colors.Length)
            {
                return(false);
            }
            // get the data item
            IDataItemClient dataItem = null;

            try {
                dataItem = OperationalInterface.Dataset[item];
            }
            catch (Exception) {
                return(false);
            }

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

            // check if there is a converter
            return(DataItemAdapter.HasDefaultAdapter(dataItem));
        }