private string SeasonOut(string metric, DateTime projectionDate) { IPrognosticate predictor; if (metric.Equals("Spread")) { //predictor = new NibblePredictor(Utility.CurrentSeason()); // which is more accurate?? predictor = new UnitPredictor { TakeActuals = true, AuditTrail = true, WriteProjection = true, StorePrediction = true, RatingsService = new UnitRatingsService() } } ; else { predictor = new WizPredictor(); } var s = HtmlLib.TableOpen("border=1 cellpadding='0' cellspacing='0'"); if (Nfc != null) { s += Nfc.SeasonProjection(metric, predictor, projectionDate); } if (Afc != null) { s += Afc.SeasonProjection(metric, predictor, projectionDate); } return(s); }
private string SeasonOut(string metric, DateTime projectionDate) { IPrognosticate predictor; if (metric.Equals("Spread")) //predictor = new NibblePredictor(Utility.CurrentSeason()); // which is more accurate?? predictor = new UnitPredictor { TakeActuals = true, AuditTrail = false, WriteProjection = true, StorePrediction = true, RatingsService = new UnitRatingsService() }; else predictor = new WizPredictor(); var s = HtmlLib.TableOpen("border=1 cellpadding='0' cellspacing='0'"); if (Nfc != null) s += Nfc.SeasonProjection(metric, predictor, projectionDate); if (Afc != null) s += Afc.SeasonProjection(metric, predictor, projectionDate); return s; }