1 //传参 2 var frm = Container.Resolve<SettlementCheckTradeEditFrm>(new NamedParameter("settlement", Settlement)); 3 frm.ShowDialog(); 4 Settlement.UserTrade.UserID = frm.UserID; 5 6 //SettlementCheckTradeEditFrm增加新的构造函数 7 public SettlementCheckTradeEditFrm(SettlementCheckTradeData settlement) 8 { 9 AccID = settlement.AccTrade.AccountID; 10 TradeID = settlement.AccTrade.TradeID; 11 InitializeComponent(); 12 }
时间: 2024-09-30 06:31:22