public static SwapStreamViewModel CreateSwapStream(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.SwapStream serial_SwapStream = serial_Class as FpmlSerializedCSharp.SwapStream; string typeStr = serial_SwapStream.Type_.ValueStr; return(SwapStreamViewModel.CreateSwapStream(typeStr)); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.CouponPart serial_CouponPart = serial_Class as FpmlSerializedCSharp.CouponPart; this.payRecieve_ = serial_CouponPart.PayRecieve_.ValueStr; FpmlSerializedCSharp.SwapStream serial_swapStream = serial_CouponPart.SwapStream_; string swapStreamtype = serial_swapStream.Type_.ValueStr; this.swapStreamViewModel_ = SwapStreamViewModel.CreateSwapStream(swapStreamtype); this.swapStreamViewModel_.setFromSerial(serial_swapStream); this.view_ = new CouponPartView(); this.view_.DataContext = this; }
public void selectSwapStreamInfo(string typeStr) { this.swapStreamViewModel_ = SwapStreamViewModel.CreateSwapStream(typeStr); this.view_.DataContext = this; }