public void AddUp(CFTable1 cf) { CFTable1 modelFrom = cf as CFTable1; Member1 = modelFrom.Member1; Member2 = modelFrom.Member2; Member3 = modelFrom.Member3; }
//private string _tableName = "N/A"; //public string TableName { get => _tableName; } public ICFTable GetCF(IModel model, Policy p, ScenarioManager sm) { CFTable1 cf = new CFTable1(); if (model.GetType() == typeof(Model1)) { Model1 modelFrom = model as Model1; cf.Member1 = modelFrom.member1; cf.Member2 = modelFrom.member2; cf.Member3 = modelFrom.member3; } return(cf); }