using KGIS.Framework.Utils; using Kingo.Plugin.ResultsOfProof.ViewModel; namespace Kingo.Plugin.ResultsOfProof.View.JZTBXX { /// /// 举证图斑信息表关联 的交互逻辑 /// public partial class BGFrmJZTBXXBRelation : BaseWindow { public object Hook = null; public BGFrmJZTBXXBRelation(object pHook) { InitializeComponent(); Hook = pHook; btnCancel.Click += (sender, e) => { this.Close(); }; SetData(0); } public void SetData(int pOID) { BGJZTBXXBRelationViewModel ViewModel = new BGJZTBXXBRelationViewModel(pOID, Hook); ViewModel.SetData(pOID); this.DataContext = ViewModel; } } }