public DeliveryFee(ExpressType type, NormalFeeMethod normal, CustomFeeMethod customs) : this(type, normal) { TkDebug.AssertArgumentNull(normal, "normal", null); TkDebug.AssertArgumentNull(customs, "customs", null); Customs.Add(customs); }
/// <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); } }