private void FrmTestApply_FormClosing(object sender, FormClosingEventArgs e) { try { if (Controller.ConnectLis()) { hyFreeHinstance(); } } catch { } }
public FrmTestApply(HIS.Model.ZY_PatList _patlist, long userid, long deptid) { InitializeComponent(); _currentUser = new User(userid); _currentDept = new Deptment(deptid); _zypatlist = _patlist; Controller = new HIS_ZYDocManager.Action.FrmMediApplyController(this, HIS.ZYDoc_BLL.MediApply.MediType.检验); Controller.GetPatlist(); if (Controller.ConnectLis()) { try { hyInitHinstance(this.Handle); } catch { } } }