Пример #1
0
        public void                     checkRecordArguments(string aItemName, object aValue)
        {
            if (String.IsNullOrWhiteSpace(aItemName))
            {
                throw new ArgumentException("Item name is missing. ");
            }

            if (mItemBrowser.isItemExists(aItemName) == false)
            {
                throw new ArgumentException("Item '" + aItemName + "' does not exist. ");
            }

            if (aValue == null)
            {
                throw new ArgumentException("Value is null. ");
            }
        }