Example #1
0
 public SavedSettings()
 {
     evaluationDate_ = Settings.Instance.evaluationDate();
     enforcesTodaysHistoricFixings_ = Settings.Instance.enforcesTodaysHistoricFixings;
     includeReferenceDateEvents_    = Settings.Instance.includeReferenceDateEvents;
     includeTodaysCashFlows_        = Settings.Instance.includeTodaysCashFlows;
 }
Example #2
0
 public ObservableValue <Date> evaluationDate()
 {
     if (evaluationDate_ == null)
     {
         evaluationDate_ = new ObservableValue <Date>(Date.Today);
     }
     return(evaluationDate_);
 }
 public ObservableValue <T> Assign(ObservableValue <T> t)
 {
     value_ = t.value_;
     notifyObservers();
     return(this);
 }
 public ObservableValue(ObservableValue <T> t)
 {
     value_ = new ThreadLocal <T>(() => { return(t.value_.Value); });
 }