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)); } }
public TestData(OptionData optData) { TestedOptionData = optData; }
public OptionData(OptionData other) { copy(other); }