internal Chaoting(Define.ChaotingDef def) { powerPartyName = def.powerParty; if (powerParty == null) { throw new Exception($"can not find chaoting power party ${powerPartyName}"); } reportPopNum = new SubjectValue <int>((int)(Depart.all.Sum(x => x.popNum.Value) * def.reportPopPercent / 100)); reportTaxPercent = new SubjectValue <double>(def.taxPercent); InitObservableData(new StreamingContext()); }
internal static Chaoting Init(Define.ChaotingDef def) { return(new Chaoting(def)); }