public MoveLotDetail(DataSet ds) { InitializeComponent(); try { ml = new MoveLot(ds); ml.onScanFinish += new MoveLot.ScanFinish(ml_onScanFinish); this.txt_NewLot.Focus(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }