public virtual void UpdateKeyInit() { KeyCurrency c = KeyCurrency.Instance; c.InitValue = ctx.PostInt("InitValue"); c.update(); log(SiteLogString.UpdateKeyCurrencyInit(), typeof(KeyCurrency)); echoToParentPart(lang("saved")); }
public virtual void UpdateKeyCurrency() { KeyCurrency c = KeyCurrency.Instance; c.Name = ctx.Post("Name"); c.Unit = ctx.Post("Unit"); c.InitValue = ctx.PostInt("InitValue"); c.IsShow = ctx.PostIsCheck("IsShow"); c.CanRate = ctx.PostIsCheck("CanRate"); if (strUtil.IsNullOrEmpty(c.Name)) { errors.Add(lang("exName")); run(EditKeyCurrency); } else { c.update(); log(SiteLogString.UpdateKeyCurrency(), typeof(KeyCurrency)); echoToParentPart(lang("saved")); } }