private void buildFromSerialClass() { if (serial_pc_ == null) { this.type_ = "Null"; } else if (serial_pc_.ConstPayoff_ != null || serial_pc_.constPayoffIDRef_ != null) { this.type_ = "Const"; ConstPayoffCtrlModel ccm = new ConstPayoffCtrlModel(serial_pc_.ConstPayoff_); this.viewModel_ = ccm; payoffDetailCtrl_ = new ConstPayoffCtrl(ccm); } }
public ConstPayoffCtrl(ConstPayoffCtrlModel ccm) { InitializeComponent(); // TODO: Complete member initialization this.ccm = ccm; }