Пример #1
0
        public DeliveryFee(ExpressType type, NormalFeeMethod normal, CustomFeeMethod customs)
            : this(type, normal)
        {
            TkDebug.AssertArgumentNull(normal, "normal", null);
            TkDebug.AssertArgumentNull(customs, "customs", null);

            Customs.Add(customs);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="key"></param>
        /// <param name="texture"></param>
        public void AddTexture(string key, Texture2D texture)
        {
            if (string.IsNullOrEmpty(key) || (texture == null))
            {
                throw new ArgumentException();
            }

            if (Customs.ContainsKey(key))
            {
                Customs[key] = texture;
            }
            else
            {
                Customs.Add(key, texture);
            }
        }