protected FineScenario(FineScenario scenario) : base (scenario) { mName = scenario.mName; mMinimum = scenario.mMinimum; mMaximum = scenario.mMaximum; mAccountingKey = scenario.mAccountingKey; mSuccess = scenario.mSuccess; mAllowDebt = scenario.mAllowDebt; }
public override bool Parse(XmlDbRow row, ref string error) { mName = new WeightOption.NameOption(row); if (row.Exists("AccountingKey")) { mAccountingKey = row.GetString("AccountingKey"); } else { error = "AccountingKey missing"; return false; } mAllowDebt = new BooleanOption.OptionValue(); if (!mAllowDebt.Parse(row, "AllowDebt", Manager, this, ref error)) { return false; } mMinimum = new IntegerOption.OptionValue(); if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error)) { return false; } mMaximum = new IntegerOption.OptionValue(); if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error)) { return false; } mSuccess = new WeightScenarioHelper(Origin.FromGettingGifts); if (!mSuccess.Parse(row, Manager, this, "Success", ref error)) { return false; } return base.Parse(row, ref error); }