internal override void HandleClicked(StatLineField field_)
 {
   switch (field_)
   {
     case StatLineField.Roll_1M:
       m_underlyingStructure.getDurationValue(SmoothCurveCalculator.FITLAG_1M)
         .List.DisplayInGrid(string.Format("{0} 1M roll calc", Name));
       break;
     case StatLineField.Roll_3M:
       m_underlyingStructure.getDurationValue(SmoothCurveCalculator.FITLAG_3M)
         .List.DisplayInGrid(string.Format("{0} 3M roll calc", Name));
       break;
   }
 }
Exemplo n.º 2
0
    public override void SetValue(StatLineField e_, double value_, bool fireUpdate_ = true)
    {
      base.SetValue(e_, value_, fireUpdate_);

      if (e_ == StatLineField.Level)
      {
        SetValue(StatLineField.Change, value_ - m_priorValue, fireUpdate_);
      }
    }
Exemplo n.º 3
0
 private void calculateValue(StatLineField targetValue_, BondField sourceValue_, double mult_=1d, bool fireUpdate_=true)
 {
   SetValue(targetValue_, mult_ * m_listOfComponents.Aggregate(0d, (sum, x) => sum + x.GetValue(sourceValue_)),fireUpdate_);
 }
Exemplo n.º 4
0
    public override void SetValue(StatLineField e_, double value_, bool fireUpdate_ = true)
    {
      base.SetValue(e_, value_, fireUpdate_);

      switch (e_)
      {
        case StatLineField.Level:
          SetValue(StatLineField.Change, value_ - m_priorValue, fireUpdate_);
          break;
      }
    }