Example #1
0
 public void copy(OptionData other)
 {
     Name             = other.Name;
     Strike           = other.Strike;
     Maturity         = new DateTime(other.Maturity.Ticks);
     AviableShares    = new ObservableCollection <Share>(other.AviableShares);
     UnderlyingShares = new ObservableCollection <ShareAndWeight>();
     foreach (ShareAndWeight saw in other.UnderlyingShares)
     {
         UnderlyingShares.Add(new ShareAndWeight(saw));
     }
 }
Example #2
0
 public TestData(OptionData optData)
 {
     TestedOptionData = optData;
 }
Example #3
0
 public OptionData(OptionData other)
 {
     copy(other);
 }